Repeating with Loops
Computing · Programming & Algorithms · ages 6–9
Using a loop (repeat 4 times, repeat forever) instead of writing the same steps again and again; spotting the repeating part of a pattern, a dance or a drawing and turning it into a loop
At what age?
Usually at ages 6–9. The age is a guide: what decides whether a child is ready is the foundations below.
How do you know your child has learned it?
- Replace a run of repeated instructions with a loop
- Predict what a program with a loop will do (e.g. repeat 4: move, turn draws a square)
- Find the repeating unit in a pattern and say how many times it repeats
A quick check
Could your child make a character draw a square using 'repeat 4 times' rather than writing the same two steps four times?
What comes first?
- Programming a Sequence (needed): A loop repeats part of a sequence
- Spotting Patterns and Structure (helps): Seeing repeating patterns helps find what to loop
What it leads to
Where to learn it
- ScratchJr (App · No words needed · ages 5–7 · Free): Picture blocks that need no reading: young children sequence a character's actions and learn ordering and breaking problems down.
- Hello Ruby (Book · English · ages 4–8): Picture books by a Finnish coder that teach computational thinking through story and unplugged play rather than a particular language.
- Raspberry Pi Projects (Course · Chinese & English · ages 8–14 · Free): The Raspberry Pi Foundation's free project library (in Chinese too): build something that works, step by step, in Scratch, Python or HTML.