Code Crew G3 / Week 02 / Crew Quest
6/6
Week 02 · Loops

Crew Quest

// Doing it again

Week 2 Recap

  1. A LOOP repeats a step.
  2. REPEAT N TIMES: runs a fixed number of times.
  3. REPEAT UNTIL: runs until something becomes true.
  4. A loop that never stops is a 'forever loop', usually a bug.
Try This Without Paper
1. Count steps from your room to the kitchen; that's a loop, one step at a time.
2. Find a loop in a song you know (the chorus repeats!).
3. Make up a chore loop: REPEAT UNTIL the toys are away.

Coming up next…

Week 3: CONDITIONALS. IF this happens, THEN do that.

← Friday