Lesson 3 — Sort It Yourself (Bubble Sort)
⏱ 35–45 minutes 💻 Write real Python in the browser
💡 Sorting is repeated compare-and-swap — nested loops make the step count grow like n × n
👨👩👧 Notes for parents
Level: Master — roughly Grade 9 / ages 14–15 Duration: 35–45 minutes Format: Write real Python in the browser Concept: Sorting is repeated compare-and-swap — nested loops make the step count grow like n × n
Learning Objective
Kids write bubble sort with nested loops, watch each round, and explain why it gets expensive on big data.
Do It Together (Parent-Child Co-participation)
Lay out 8 cards face down and sort them by hand, comparing pairs and counting swaps — then invent a faster method and compare.