C-17-Q126mediumsingle_mcq
The statement for i in range(1, 6): will iterate exactly:
The statement for i in range(1, 6): will iterate exactly:
- a4 times
- b5 times
- c6 times
- d1 time
ব্যাখ্যা
range(1, 6) produces the values 1, 2, 3, 4, 5 — the stop value 6 is excluded. The loop therefore runs exactly 5 times.