You are on page 1of 1

Exercise

Write down the outputs of the following statements. Use □ to represent one space.
Statement Output
(a) print(4-0.5) 3.5
(b) print(5+6*2) 17
(c) print(5.0 % 2) 1
(d) print(3*8 % 5) 4
(e) print(2+20 // 3) 8
(f) print(-9 % -4) -1
(g) print(8 // 0) 0
(h) print(35 % (3*-2)) -1
(i) print('Miss'+'Chak') MissChak
(j) print('01', '09', '2022') 01□09□2022

You might also like