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.