Question Detail
Question
In the "Guess the Number Game Python Code," after the user guesses the
secret_number correctly, what is the immediate effect of the break statement?
Correct Answer
Option B is the correct answer.
Detailed Explanation
The
break statement, as explained on page 9, exits the loop instantly. In this case, it exits the while True loop after the correct guess.
Hint
Recall the definition of the
break statement.