HanuLab HanuLab
đŸ—ēī¸ Map â€ē ⚔️ Apprentice â€ē 🔀 Logic & Conditions

Lesson 4 — Nested Conditions: A Fork Inside a Fork

⏱ 25–30 minutes 💻 Write real Python in the browser (runs instantly, nothing to install) 💡 if inside if — layered decisions like a series of checkpoints, indenting 4 more spaces per layer
💡 Play away! To save stars, ask a parent to log in
👨‍👩‍👧 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: if inside if — layered decisions like a series of checkpoints, indenting 4 more spaces per layer

Learning Objective

Kids write 2-level nested conditions with correct indentation, and can judge when to nest vs. when a single and is shorter.

Do It Together (Parent-Child Co-participation)

Draw the "checkpoints" of a real house rule, e.g. game time requires (1) homework done (2) before 8pm — then ask which cases need nested ifs and which just need and.