C-18-Q093mediumsingle_mcq
Consider for i in range(1,6): print('ICT'). How many times will ICT be displayed?
Consider for i in range(1,6): print('ICT'). How many times will ICT be displayed?
- a1
- b5
- c3
- d6
ব্যাখ্যা
range(1,6) produces the values 1, 2, 3, 4, 5 — five numbers, since the stop value 6 is excluded. The loop body therefore executes 5 times.