🗺️ Map ›
⚔️ Apprentice ›
🔀 Logic & Conditions
Lesson 2 — elif: When the Fork Has More Than Two Ways
⏱ 25–30 minutes 💻 Write real Python in the browser (runs instantly, nothing to install)
💡 elif = a third, fourth, fifth path... the program checks top to bottom and stops at the first true one
👨👩👧 Notes for parents
Level: Apprentice — roughly Grade 7 / ages 12–13 Duration: 25–30 minutes Format: Write real Python in the browser (runs instantly, nothing to install) Concept: elif = a third, fourth, fifth path... the program checks top to bottom and stops at the first true one
Learning Objective
Kids use if/elif/else for multiple paths and understand that condition ORDER matters — the program checks top to bottom and takes the first true branch.
Do It Together (Parent-Child Co-participation)
Experiment together: swap the if energy >= 80 line with elif energy >= 40 and feed in 90 — why is the answer wrong? Have your child explain in their own words (top-to-bottom, stop at first true).