← Mission map

Mission 2 of 16

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.

🧪 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.

⭐ Do the round to earn your star →
🤸 Brain break: Loop-clap: clap the same 2-beat pattern over and over — a loop repeating.