Loops & Patterns
📋 What it is
A loop repeats a set of instructions, so you can do a task many times without writing it out over and over.
🗣️ Coach says
When you need to do something repeatedly — draw 100 squares, greet every player — you use a LOOP instead of copying code 100 times. Loops spot the PATTERN ("do this N times" or "until done") and repeat it. They make code shorter, clearer, and easy to change.
🧠 Memory hook
Spot the repeated pattern → use a loop. Don't copy the same code 100 times.
😂 Giggle
What's a computer's favorite snack?
Microchips!
😲 Whoa!
A single loop can run millions of times in a blink — which is how a computer can add up a million numbers faster than you can say "loop".
✅ Quick check: When should you use a loop?
Say your answer out loud first — then reveal.
When you need to repeat the same instructions many times — a loop does it without writing the code out over and over.
Loops handle repetition efficiently by repeating a block.
🧪 Try it! (2 minutes)
Find a repeated pattern in a chore (e.g. "for each dish, rinse then stack") and write it as a loop.