Example 1 — Store a comparison, then use it
Show the steps and the answer
score >= 50 means 62 >= 50, which is True, so passed = True.
A comparison produces a boolean, and assignment stores it like any other value.
lives == 0 means 0 == 0, which is True, so game_over = True.
The double equals asks the question; the single equals in front stores its answer.
not game_over is not True, which is False.
not flips a boolean to the other value.
passed and not game_over is True and False, which is False, so nothing is printed.
and needs both sides True; the player reached the score but has no lives left.
Answer: passed = True, game_over = True, and nothing is printed.
Takeaway: Comparisons create booleans you can store under clear names; conditions then read those stored answers.