C-17-Q086mediumsingle_mcq
With range(1, 6), the loop variable takes the values:
With range(1, 6), the loop variable takes the values:
- a0, 1, 2, 3, 4, 5
- b1, 2, 3, 4, 5
- c1, 2, 3, 4, 5, 6
- d1, 6
ব্যাখ্যা
range(start, stop) includes the start value but excludes the stop value, so range(1, 6) yields . The value 6 is the upper bound and is never produced.