C-17-Q147mediumsingle_mcq
The output of for i in range(1, 6): print('ICT') is:
The output of for i in range(1, 6): print('ICT') is:
- a
ICTprinted 5 times on separate lines - b
ICTprinted once - cThe numbers 1 through 5
- dNothing
ব্যাখ্যা
The loop body runs once for each value in range(1, 6) — that is 5 times — and each print('ICT') outputs on its own line by default. The numbers themselves are not printed, only the string ICT.