Find the output of the following program segments:

(a)for I in range (20,30,2):print(i)(b)country = ‘INDIA’for i in country:print (i)(c)i=0; sum = 0while i < 9 :if i % 4 == 0:sum = sum + ii = i + 2print (sum) Ans: (a) Will display output2022242628        (b) Will display outputINDIA (c) Will display output 12

Find the output of the following program segments: Read More »