C-17-Q090mediumsingle_mcq
To print the text "ICT" exactly five times using a for loop, the textbook uses:
To print the text "ICT" exactly five times using a for loop, the textbook uses:
- a
for i in range(5, 1): - b
for i in range(1, 6): - c
for i in range(0, 6): - d
for i in range(1, 5):
ব্যাখ্যা
Since range(1, 6) generates exactly five values ( through ), looping over it runs the body five times. This prints "ICT" exactly five times as required.