C-17-Q094mediumsingle_mcq
In the program that prints a word 50 times, the upper bound used in range(1, ...) is:
In the program that prints a word 50 times, the upper bound used in range(1, ...) is:
- a50
- b51
- c49
- d100
ব্যাখ্যা
Because range excludes its upper bound, generating 50 iterations from a start of 1 requires the stop value to be 51. So range(1, 51) produces through — fifty repetitions.