Mar-28-2023, 08:32 AM
(This post was last modified: Mar-28-2023, 08:33 AM by Gribouillis.)
In a sequence such as
if condition1: ... elif condition2: ... elif condition3: ... else: ...Only the code corresponding to the first condition that evaluates to True is executed. The code in the other branches are not executed. In your case, the
user_input >= LIMIT_NUMBER
condition evaluates to True when the user inputs 12.