Repeat loops worksheet for Years 3–4: Repeat it!

Members Chapter 2 of Sequences and Loops: Code a Robot and Squash the Bugs · Year 3, Year 4 · 3 pages · PDF, A4

All 4 worksheets in this game

One for each chapter

Repeat It! is a printable repeat loops worksheet for Years 3 and 4 (ages 7 to 9) that teaches children to use a repeat loop to run a group of instructions again and to choose how many times it repeats. It follows the national curriculum in England for computing in Years 3 to 6: use sequence, selection and repetition in programs, and work with various forms of input and output.

  • 3 A4 pages
  • Answers sheet
  • About 30 minutes
  • Colour or black and white
  • National curriculum

For members Membership opens every worksheet and every game. Already a member? Log in

Start with the free one: Getting the order right (chapter 1).

The game for this worksheet Sequences and Loops: Code a Robot and Squash the Bugs Chapter 2 · Repetition: using repeat loops in programs · read aloud ▶ Play chapter 2 in the gameChapter 1 is free

Print it on A4, in colour or black and white. Do it after the chapter, or before it to see what your child already knows.

What's on the worksheet

Use repeat loops to make programs shorter, choose how many times a loop repeats, and decide which blocks go inside it. With a clap-and-stamp loop activity and answers.

Page 1 · Learn
Flip swaps five move forward blocks for one repeat 5 loop, then draws a square with repeat 4 times: forward, forward, turn right. A warm-up turns a clap-and-stamp pattern into a loop.
Page 2 · Try it together
Clap and stamp loops: make body-percussion patterns, write them as loops like repeat 3 times: clap, clap, stamp, then swap and perform each other's loops.
Page 2–3 · Practise
Rewrite three long programs as loops, ring the blocks that belong inside a loop, count the repeats needed to reach a star, and write out every block a loop runs.
Answers sheet
Every answer by page, what to watch out for (one repeat too many, repeating each block on its own, the wrong blocks in the loop) and quick ideas without paper.

3 A4 pages and an answers sheet · about 30 minutes

Using it at home

  • Do the clap and stamp loops first: performing a loop with your body makes it clear that the whole group repeats in turn. It takes about 10 minutes.
  • When counting repeats on the grid, ask your child to point to each move, not each square. Counting the starting square gives one repeat too many.

Watch out for

Counting how many times a loop should repeat wrongly, often one too many or one too few.
Point to each move with a finger: "one, two, three". Don't count the square the robot starts on.
Thinking each block inside a loop repeats on its own, rather than the whole group in turn.
Say the loop in rounds: "Round 1: clap, stamp. Round 2: clap, stamp." The group runs, then runs again.
Picking the wrong blocks to put inside a loop.
Only the part that repeats goes inside. Something that happens once goes before or after the loop.

Questions from the worksheet

  1. Rewrite each long program as a loop. Fill in the number and the blocks inside.
  2. Draw a ring round the blocks that should go inside the loop. How many times should it repeat? Which block stays outside the loop?
  3. Write out every block this loop runs, in order: repeat 3 times: move forward, turn left.
  4. Leo says, "repeat 2 times: clap, stamp means clap, clap, stamp, stamp." Is he right? Explain what the loop really does.

The answers are on the answers sheet, for grown-ups.

National curriculum in England

This worksheet practises this statement from the Years 3–6 computing programme of study:

  • Use sequence, selection, and repetition in programs; work with variables and various forms of input and output

Source: National curriculum in England: computing programmes of study (DfE)

In the classroom

  • Use the clap and stamp loops as a lively starter: pupils write a loop on mini-whiteboards and the class performs it.
  • In pairs, one pupil writes a long program and the other rewrites it as a loop, then they check it together.

Questions and answers

What is a repeat loop in coding?

A repeat loop runs a group of instructions a set number of times. Instead of writing move forward five times, you can write repeat 5 times: move forward.

Why do programmers use loops?

Loops make programs shorter and easier to read and check. They also make it easier to change the program, because you only need to change the number of repeats.

More worksheets from Sequences and Loops: Code a Robot and Squash the Bugs

More Year 3 technology worksheets

One for every chapter of every game, with answers.

Browse them →