Mini Minds Hub · Free printable

Loop the Pattern: Free Printable Worksheet for Year 4

In short: Free printable Loop the Pattern for Year 4 (ages 8 to 9). Crack the file. Shade each strip, then write loops and fix the bugs. With answers for grown-ups.

  • ForYear 4
  • StageKey Stage 2
  • CostFree
  • FormatPrintable PDF

Loop the Pattern is a computing worksheet for Year 4 (ages 8 to 9) where children read repeat loops, shade strips of squares, rewrite step lists as short loops and fix bugs. It suits children who already know that a program is a list of instructions and are ready to see how a loop can replace a long list.

Before anyone shades, model strip A aloud and say each round as one chunk, such as "shade, shade, skip". The usual slip is shading the skipped squares or losing count of the rounds, so ask children to tick each round as they finish it. Then let them try strips B and C alone.

What is on the sheet

Children work down the sheet, following loops written as "Repeat" instructions. They shade squares on strips, count what they have shaded and write a pattern of actions as a short loop instead of listing every step. They also fix bugs in loops that do not work. There are multiple choice questions with three answers each, a table to fill in and numbered questions with space to write. The cracking the file theme makes each task feel like a small puzzle.

  • Loop
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • Repeat 5 times: shade 1, skip 2. How many squares are shaded?
  • Write as a short loop: clap, stamp, clap, stamp, clap, stamp.

Worked example: counting the moves in a loop

Repeat 12 times: hop, hop, spin. How many moves are there altogether?

This is a different question from the ones on the sheet. It shows two ways to think about a loop.

Method 1: one round, then multiply
  1. Look at one round only: hop, hop, spin. That is 3 moves.
  2. The loop runs 12 rounds, so find 12 groups of 3.
  3. 12 x 3 = 36.
Method 2: split the rounds
  1. Do 10 rounds first. 10 x 3 = 30 moves.
  2. Then do the 2 rounds left. 2 x 3 = 6 moves.
  3. Add the parts: 30 + 6 = 36.
36 moves altogether (24 hops and 12 spins)

What is a loop in computing?

A loop is a way of telling a computer to repeat a set of instructions. Without loops, a program that draws a pattern would need every single step written out. With a loop, the steps are written once and the computer is told how many times to run them. Programmers use loops all the time because they make programs shorter and easier to read.

Bugs are mistakes in instructions. A bug might be a missing step, a step in the wrong place or a loop that repeats the wrong number of times. Fixing bugs is called debugging. Good debuggers read the instructions slowly, act them out and check each round. That careful habit is exactly what this sheet practises, using paper and pencil instead of a screen.

Fun facts about loops and bugs

  • Computers follow instructions exactly, even when the instructions contain a mistake.
  • A set of step by step instructions is called an algorithm.
  • Many programming languages, including Scratch and Python, have ways to repeat instructions.
  • A mistake in a program is called a bug, and finding and fixing it is called debugging.
  • Repeating the same steps with a loop means a programmer writes less and makes fewer slips.

Skills and curriculum link

  • Following repeat loops
  • Rewriting steps as a loop
  • Finding and fixing bugs
  • Counting rounds carefully
  • Spotting patterns
  • Explaining your thinking

Ideas to help you help

  • LoopA loop is one set of steps that repeats. Ask children to name the part that repeats before they do anything else.
  • RoundEach time the loop runs is one round. Counting rounds is different from counting squares, so keep the two apart.
  • BugA bug is a mistake in the instructions, not in the child. Say this out loud so that finding bugs feels like detective work.
  • DebuggingDebugging means testing, spotting the problem and changing only what is wrong. Acting the loop out step by step helps.

Key words

  • LoopA set of steps that is repeated.
  • RepeatTo do the same steps again.
  • InstructionOne clear step that tells you what to do.
  • BugA mistake in a set of instructions.
  • DebugTo find a bug and fix it.
  • PatternSomething that repeats in an order you can predict.

How to use it

  1. Print both pages. Page 1 is for your child. Keep page 2, which has the notes and answers, for yourself.
  2. Read the first loop aloud. Ask your child to say what one round looks like before they pick up a pencil.
  3. Model strip A together, then let your child shade B and C alone, ticking off each round as they go.
  4. When they reach the bugs, ask them to act the loop out with claps or steps and say where it goes wrong.
  5. Check with page 2 together. Ask, "How did you know?" Come back another day and redo any tricky parts.

Help, stretch and game ideas

If it feels too hard

Let your child tick off each round on their fingers while shading. Say the loop aloud, for example "shade, skip, skip", and count every round. Cover the rest of the strip with a spare piece of paper so they only see the squares they are working on.

To stretch confident children

Ask your child to invent a loop of their own for a strip of 12 squares. Swap with a partner, who shades it and says how many squares are shaded. Then each writes one deliberate bug for the other to find and fix.

Make it a game

Play agent and robot. The agent reads a loop aloud while the robot acts it out, one step at a time. The robot must follow the words exactly, even if the loop has a bug. Swap roles and see who can spot the problem first.

Mistakes to watch for

Watch forA child shades the skipped squares as well as the shaded ones.

Try thisSay each step as it happens, "shade, skip, skip", and point to each square. Cross out skipped squares lightly so they stand out.

Watch forA child runs the loop fewer or more times than the instruction says.

Try thisDraw a tick box for every round and fill one in as each round is finished. Stop when all boxes are ticked.

Watch forWhen fixing a bug, a child changes the whole loop instead of the faulty part.

Try thisAct the loop out slowly and stop at the first step that goes wrong. Change only that step, then test the loop again.

Talk about it

  • What part of this pattern keeps repeating?
  • How do you know when the loop should stop?
  • Why is a loop shorter than writing out every step?
  • How did you find the bug? What clue gave it away?
  • Could you write this pattern in a different way?
  • Where do you see repeating patterns in a day at home or school?

Take it off the page

Loop a dance

Make up a short dance with three moves. Write it as a loop and perform it for a family member, who counts the rounds.

Bead or button patterns

Thread beads or line up buttons in a repeating pattern. Describe it as a loop, then ask someone to continue it.

Daily routine loops

Write a routine, such as getting dressed or setting the table, as a list of steps. Find any steps that repeat and rewrite them as a loop.

Who it is for

Parents

Sit beside your child for the first strip, then let them lead. Ask them to say each loop aloud. If they get stuck on a bug, suggest acting it out with claps or steps.

Teachers

Use it as a starter or plenary in an unplugged computing lesson on repetition and debugging. It also works as an early finisher task, or cover work needing only printing.

Home educators

Pair it with everyday talk about routines and patterns, or with an unplugged coding game outdoors. Print it again for brothers and sisters, or return to it later to check that the ideas have stuck.

Where this fits in computing

Before this sheet, children usually learn to give and follow a sequence of instructions in the right order. They find out that computers need clear, exact steps and that changing the order changes the result.

After this sheet, children can move on to using repetition in programs on screen, for example with repeat blocks in a block based language. They can also practise making longer programs and testing and debugging them step by step.

Keep practising

If this sheet went well, find more in our Year 5 computing worksheets and Year 5 worksheets and games, or try The Dice Code Mystery, A Message's Big Journey, Code a Story Path or Safe Chatting Cards next.

Browse: Mini Minds Hub > Year 5 worksheets and games > Year 5 computing worksheets

Questions parents and teachers ask

What age is Loop the Pattern for?

It is written for Year 4, which is ages 8 to 9, in Key Stage 2. Children who already follow simple instructions with confidence will get the most from it. Younger or older children can use it with adjustments.

What will children practise?

Children practise reading, writing and debugging repeat loops. They follow loops by shading strips, rewrite step lists as short loops and find and fix bugs in loops that do not work.

Does my child need a computer?

No. The sheet is screen free and needs only paper and a pencil. It teaches the idea of repetition and debugging without a device, which makes it a good lead in to on screen programming later.

How do I help if my child gets stuck?

Ask them to say one round of the loop aloud, then tick off each round on their fingers as they shade. Acting the loop out with claps or steps also helps. Page 2 has more ideas.

Are answers included?

Yes. Page 2 is for the grown-up and includes the answers, along with notes on how to use the sheet, help for children who find it hard and a stretch idea.

Can teachers use it in class?

Yes. It works as a starter, plenary, early finisher task, homework or table activity. It needs no preparation beyond printing, and the support and stretch ideas on page 2 suit mixed ability groups.

Do I need to print in colour?

No. The sheet works well in black and white on plain A4 paper. Children only need a pencil for shading and writing, so colour printing is not needed.

Preview the full PDF

Made by Jaques of London, making games for families since 1795. A printable supports classroom learning and does not replace a teacher.