Question Detail
Question
In the 'Guess the Number Game Python Code' on page 13, why is
while True: used for the main game loop?
Correct Answer
Option C is the correct answer.
Detailed Explanation
Using
while True: creates an unconditional loop that runs forever. The loop is designed to exit only when the correct guess is made, triggering the break statement within the if block.
Hint
True is a constant boolean value. What does a while loop do when its condition is always true?