Question Detail
Question
In the 'Guess the Number Game' Python code, why is
while True: used?
Correct Answer
Option C is the correct answer.
Detailed Explanation
Slide 12 (and the code on Slide 13) specifies: 'Use while True: to keep asking for a guess.' This creates an infinite loop that must be exited by a
break statement when the correct guess is made.
Hint
Consider what happens if the loop condition is always true, and how it relates to the `break` statement in the game.