In code, a loop repeats instructions so you do not have to write them again and again. This activity gets children up and moving while they discover why loops make programs shorter and clearer.
- Ages: 6–11
- Time: 20 minutes
- Skill: Loops and patterns
What you need
- Space to move
- Paper and a pencil
- Optional: music
Step by step
- Invent moves. Choose four simple moves: clap, jump, spin, touch toes. Give each a symbol or letter.
- Write a routine. Write a routine the long way: clap, clap, jump, clap, clap, jump, spin.
- Spot the pattern. Which parts repeat?
- Write it as a loop. Rewrite it: repeat 2 times (clap, clap, jump), then spin.
- Perform it. Do the routine following the loop version.
- Make a bigger one. Create a routine with a loop inside a loop.
What your child learns
What a loop is, how to spot repeating patterns, and how loops make instructions shorter: exactly what our Fun with Coding students use to draw patterns that would be impossible by hand.
Make it easier or harder
- Easier: loops of two moves only.
- Harder: nested loops, such as repeat 3 times (repeat 2 times (clap), jump).
Enjoyed it? Book a free coding demo class, or see Fun with Coding for year-round coding.
More free activities for kids
- If-then card game: learn coding conditions with cards
- Debug the recipe: a find-the-bug activity for kids
- Design a video game on paper: a creative coding activity
- Story character builder: a free writing activity for kids
- Five senses setting: a descriptive writing activity for kids
- The 50-word story challenge: a fun writing activity for kids
- All free activities for kids →