This question was already answered:
• How does Python treat multiple IF's that are NOT nested?
(The actual code does not help answer the above question.)
The Python Interpreter will evaluate multiple non-nested if
statements sequentially. That is if there are no elif
or else
clauses, The first if
statement will be evaluated, then the second, third, and so on.