C-17-Q096mediumsingle_mcq
If the user enters "Computer", the loop prints "Computer" how many times in total?
If the user enters "Computer", the loop prints "Computer" how many times in total?
- a49
- b50
- c51
- d100
ব্যাখ্যা
The loop uses range(1, 51), which yields fifty values, so the body runs 50 times. Thus "Computer" is printed exactly 50 times regardless of the word entered.