(a)
for I in range (20,30,2):
print(i)
(b)
country = ‘INDIA’
for i in country:
print (i)
(c)
i=0; sum = 0
while i < 9 :
if i % 4 == 0:
sum = sum + i
i = i + 2
print (sum)
Ans:
(a) Will display output
20
22
24
26
28
(b) Will display output
I
N
D
I
A
(c) Will display output 12