Mini Minds Hub · Free printable

Loop the Tractor Trail: Free Printable Worksheet for Year 3

In short: Free printable Loop the Tractor Trail for Year 3 (ages 7 to 8). Help Kaleb the Tractor cut his long code short with repeat loops.

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

Loop the Tractor Trail is a computing activity for Year 3 (ages 7 to 8). Children write code to drive Kaleb the Tractor across a grid, then make long codes shorter with repeat loops. It suits children who can follow a sequence of instructions and are ready to spot patterns in them.

Before anyone writes a loop, ask your child to act out the long code with a counter on a drawn grid. The usual slip is thinking the loop count only repeats the last move. Say it clearly: everything inside the brackets runs again, every time. Ask them to point to the brackets as they say it.

What is on the sheet

Children start by reading the key aloud and matching it to the moves Kaleb can make. Then they work down the numbered tasks. First they write plain code to move Kaleb without a loop. Next they turn a loop into its long form. Finally they spot a repeating pattern and shorten it with a loop. There is space to answer each task.

  • Write code to drive Kaleb forward 4 squares. Do not use a loop.
  • Write out the long code for Repeat 3 [F F L].
  • Shorten this code with a loop: F F R F F R F F R F F R

Finding the block that repeats

Shorten this code with a loop: F L F L F L F L F L

This is a different code from the ones on the sheet. It shows how to find the block that repeats. F and L here are move letters in the same style as the sheet.

Method 1: spot the block
  1. Look for the shortest group of moves that repeats. Here it is F L.
  2. Put brackets round that group: [F L].
  3. Count how many times the group appears. It appears 5 times.
  4. Write the loop count first: Repeat 5 [F L].
Method 2: check by writing it out
  1. Take your loop, Repeat 5 [F L].
  2. Write the bracket contents out 5 times: F L, F L, F L, F L, F L.
  3. Compare with the original code. If every move matches, the loop is right.
Repeat 5 [F L]

What is a loop in code?

A loop is a way of telling a computer to do the same instructions again without writing them out each time. Instead of typing a long list, a programmer writes the instructions once and says how many times to repeat them. The loop count is that number. The instructions to repeat sit inside brackets.

Unplugged computing means learning how code works without a computer. Children move counters, draw grids and act out instructions with their own bodies. This helps them see exactly what each instruction does before they meet it on a screen. A loop is a good first idea to learn this way because children can see the pattern with their own eyes.

Skills and curriculum link

  • Writing code in steps
  • Using repeat loops
  • Spotting patterns
  • Explaining what a loop does
  • Checking and fixing code

Ideas that help with loops

  • Order mattersCode runs one instruction at a time, in order. Changing the order can send Kaleb somewhere different.
  • The loop countThis number tells you how many times the instructions inside the brackets run.
  • The bracketsOnly the moves inside the brackets repeat. Moves outside them run once.
  • Act it outMoving a counter on a grid shows exactly what the code does. It is a quick way to check your work.

Key words

  • CodeA list of instructions that tells something what to do, in order.
  • InstructionOne single command, such as a move forward.
  • LoopA way to repeat instructions so you do not write them out again.
  • Loop countThe number that says how many times a loop runs.
  • SequenceInstructions placed one after another in a set order.
  • UnpluggedLearning about computing without using a computer or tablet.

How to use it

  1. Print both pages. Page 1 is for your child. Keep page 2 for yourself, as it has notes, help, a stretch idea and answers.
  2. Read the key aloud together. Make sure your child knows what each symbol means before they start.
  3. Say what a loop count means: it is how many times everything inside the brackets runs.
  4. Let your child work down the numbered tasks. Ask them to explain each answer in their own words.
  5. Check against page 2. Come back another day and try the tricky tasks again.

Help, stretch and game ideas

If it feels too hard

Let your child act out each code with a counter on a drawn grid before writing a loop. Move the counter one instruction at a time and say each move aloud. Then ask which group of moves keeps coming back.

To stretch confident children

Invent a trail of 12 or more moves that needs a loop inside a longer code. Write it out in full first, then shorten it. Swap with a partner and see if they can find the same loop.

Make it a game

One child is Kaleb and moves around a clear space. The other reads out loop code, one instruction at a time, for Kaleb to follow. Swap roles. Then try writing a loop that gets Kaleb back to the start.

Mistakes to watch for

Watch forA child repeats only the last move inside the brackets.

Try thisWrite the whole bracket out the right number of times, then act it out with a counter. Point to each move as it runs.

Watch forA child writes a loop count that matches the number of moves, not the number of repeats.

Try thisAsk them to circle each repeating group in the long code. The number of circles is the loop count.

Watch forA child puts moves into the brackets that do not repeat.

Try thisCheck the shortened code by writing it out in full. If it does not match the original, find the moves that were included by mistake.

Talk about it

  • What does the loop count tell you?
  • How can you tell which moves belong inside the brackets?
  • Why is a loop shorter than writing every move?
  • How could you check that your short code does the same job as the long one?
  • Where in daily life do we repeat the same steps again and again?
  • What would happen to Kaleb if we changed the loop count?

Take it off the page

Floor grid

Draw a grid on the floor in chalk or with masking tape. Take turns being the tractor and following spoken loop code.

Pattern clapping

Make a clap and stamp pattern, then say it as a loop. For example, repeat a short pattern three times.

Daily routine loops

Write a routine such as getting ready for school. Find any steps that repeat and rewrite them as a loop.

Who it is for

Parents

Sit beside your child for the first go, then let them lead. Ask them to talk through each answer as they go. Use a counter on a drawn grid if they get stuck.

Teachers

Use it as a starter, plenary or early finisher in a unit on programming. It supports the Key Stage 2 strands on designing and writing programs and using repetition in them. Page 2 gives support and stretch for mixed groups.

Home educators

Pair it with floor grid games and everyday talk about patterns. The sheet needs only paper and a pencil, so it works well alongside a wider computing plan. Use it again later for brothers, sisters or revision.

Where this fits in learning to code

Before loops, children learn that code is a sequence of exact instructions, and that the order matters. They practise writing short sequences and acting them out. They also learn to find mistakes in code and fix them.

After this sheet, children can try loops with different loop counts and longer trails. Later they meet loops in block based coding tools on a screen. The same idea carries across: find what repeats, say how many times, and write it once.

Keep practising

If this sheet went well, find more in our Year 4 worksheets and games, or try Repeat Route Rescue, Recycling Robot Rules, Loop the Loop Cartoon or Human Network Game next.

Browse: Mini Minds Hub > Year 4 worksheets and games

Questions parents and teachers ask

What age is Loop the Tractor Trail for?

It is written for Year 3 (ages 7 to 8), in Key Stage 2. Children who are confident with simple sequences of instructions will do best. Younger children can use it with an adult. Older children can use the stretch idea.

What will children practise?

They write step by step code, turn loop code into its long form and shorten long code with repeat loops. They also explain what a loop does. It is all unplugged, so no computer is needed.

What is a loop in code?

A loop repeats a set of instructions. The loop count says how many times it runs. The instructions to repeat sit inside brackets. This saves writing the same moves again and again.

Do children need a computer?

No. The sheet is screen free and needs only paper and a pencil. A counter and a drawn grid can help children act out the code. This makes it easy to use at home or in class.

What if my child finds it hard?

Let them act out each code with a counter on a drawn grid before writing a loop. Move one instruction at a time and say each move aloud. Then ask which group of moves keeps coming back.

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. Page 2 has support and stretch ideas, plus answers.

Is it free, and do I need colour?

Yes, it is free to print for home and classroom use. Black and white printing works well on plain A4 paper. Print both pages and keep page 2 for the grown-up.

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.