Lesson 5 — Project: Code Binary Search and Measure It
⏱ 35–45 minutes 💻 Write real Python in the browser
💡 A strategy in your head becomes code with a clear stopping condition — then you measure it against the old way
👨👩👧 Notes for parents
Level: Master — roughly Grade 9 / ages 14–15 Duration: 35–45 minutes Format: Write real Python in the browser Concept: A strategy in your head becomes code with a clear stopping condition — then you measure it against the old way
Learning Objective
Kids implement binary search with a while loop and boundary variables, comparing step counts against linear search on real data.
Do It Together (Parent-Child Co-participation)
Have your child explain on paper why 2 steps is enough, then set the target to a number that is not in the list and check the program still ends cleanly.