Free practice · single-choice · easy
Practice
Choose a condition branch
If score is 72, which branch runs in: if score >= 80: "High"; elif score >= 60: "Medium"; else: "Low"?
Top-to-bottom branch review
Only the first satisfied branch in the chain runs
- Current state
- score = 72
- First test
- score >= 80
- Second test
- score >= 60
- Fallback
- Run only if earlier tests are false
Evaluate the conditions in written order. Once one condition is true, later elif and else branches are skipped.