← Years 5–6 Creating Digital Solutions

The repeat block

A block that runs the blocks inside it 10 times, then moves on. Change the number to set how many times. It saves you from stacking the same blocks again and again.

Understanding The repeat block in Years 5–6 Creating Digital Solutions

What it does: The count is the number in the repeat block. Changing it changes how many times the loop runs. Only the blocks tucked inside the repeat 'mouth' are repeated. Blocks below it run once after the loop finishes. Both ways do the same thing, but repeat is shorter and easier to change. Just change the count. The repeat block finishes all 10 loops first. Then the script moves on to the next block.

Common mistakes: The turn block measures in degrees, not steps. The line should be 'turn 15 degrees'. The repeat block needs a number so it knows how many times to run the blocks inside. It should be 'repeat 5'.

Class: _____________________  ·  Name: _____________________  ·  Date: _________

Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.

This module's key terms are also in a printable crossword (Modules 51–60) and word search (Modules 41–74).

Take this worksheet further — free with Cloodit

Each concept is reinforced from every angle — learned, then applied, then tested.

Learning
Duo
What does the 'repeat 10' block do?
It runs the blocks inside it 10 timesIt runs the blocks inside it forever
Matches
repeat 10 { } then move 10 steps
↓
The move block is outside the repeat block, so it only runs once. It must go inside the loop to repeat 10 times.
Applying
Meanings
Term
repeat 10
Meaning
A block that runs the blocks inside it 10 times, then moves on. Change the number to set how many times. It saves you from stacking the same blocks again and again.
Practice
when green flag clicked
Testing
Gaps
10
Check Answer
Spots
3 move 10 steps
4 turn 15 steps

Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.

The 'Lion's Mane Jellyfish' badge — Set Operator, one of Cloodit's 106 collectible badges
Students earn collectable badges

Over 100 of them, across seven natural biomes.

Study Buddy
Students build a real study resource

Turns their work into revision material ready for Flash Cards and Exam study.

Diamond Dash — one of Cloodit's live, competitive Sprint games
Students lock in with Sprints

Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.

A Cloodit certificate of achievement, ready to personalise and print
Custom printable certificates

Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.

Quick Questions

1. What does the 'repeat 10' block do?
A. It runs the blocks inside it 10 times ✓
B. It runs the blocks inside it forever
The number in a repeat block tells it how many times to run. After 10 times, the script moves on.
2. You want a sprite to move 10 steps three times. Which block should you use?
A. repeat 10 with move 3 steps inside
B. repeat 3 with move 10 steps inside ✓
The number on the repeat block is how many times to loop. The number in the move block is how far to go each time.
3. Which blocks run again and again?
A. The blocks stacked below the repeat block
B. The blocks inside the repeat block ✓
Only the blocks tucked inside the repeat 'mouth' are repeated. Blocks below it run once after the loop finishes.
4. How do you make a sprite spin around 20 times instead of 10?
A. Change the number in the repeat block to 20 ✓
B. Drag in 20 more repeat blocks
You only need to change the count. That is why repeat saves you from stacking the same blocks again and again.
5. Why is repeat 10 with one 'move 5 steps' block better than stacking 10 'move 5 steps' blocks?
A. It does the same job with fewer blocks ✓
B. It makes the sprite move faster than any other way
Both ways do the same thing, but repeat is shorter and easier to change. Just change the count.

Match the Pairs

repeat 10 → Runs the blocks inside it 10 times, then moves on to the next block
repeat 4 { move 10 steps; turn 90 degrees } → Moves and turns 4 times, which makes a square shape
To make a sprite jump 5 times, choose the count 5 in the repeat block → repeat 5
Blocks placed inside the repeat block run again on every loop → repeat 3 { say Hello for 1 seconds }
repeat 10 { } then move 10 steps → The move block is outside the repeat block, so it only runs once. It must go inside the loop to repeat 10 times.
Goal: dance 3 times, but the block says repeat 30 → The count is wrong. It should be repeat 3 so the dance runs 3 times, not 30.

Key Term

repeat 10
A block that runs the blocks inside it 10 times, then moves on. Change the number to set how many times. It saves you from stacking the same blocks again and again.

Fill in the Blanks

1. repeat 10 move (10) steps
Hint: Type the name of the block that runs the blocks inside it a set number of times.
2. repeat 4 move (50) steps turn right (90) degrees
Hint: Type the count so the sprite draws every side of a square.
3. repeat 10 move (10) steps
Hint: Type the motion block name that makes the sprite walk forward inside the loop.
4. repeat 5 move (20) steps turn right (15) degrees
Hint: Type the motion block name that rotates the sprite inside the loop.
5. repeat 10 move (10) steps // moves 100 steps in total
Hint: Type the count that makes the loop move the sprite 100 steps in total.

Spot the Error

Question 1
A when green flag clicked
B repeat 10
C move 10 steps
D turn 15 steps
E end
Line D — The turn block measures in degrees, not steps. The line should be 'turn 15 degrees'.
Question 2
A repeat
B move 10 steps
C say Hi! for 1 second
D end
Line A — The repeat block needs a number so it knows how many times to run the blocks inside. It should be 'repeat 5'.
Question 3
A when space key pressed
B repeat ten
C turn 36 degrees
D end
Line B — The repeat block needs a number to set the count, not a word. It should be 'repeat 10'.
Question 4
A when green flag clicked
B loop 10
C move 5 steps
D end
Line B — The block is called 'repeat', not 'loop'. The line should be 'repeat 10'.
Question 5
A when green flag clicked
B set score to 0
C repeat 5
D set score by 2
E end
Line D — The 'set' block uses 'to' and would not add anything. To add 2 each time round the loop, use 'change score by 2'.

Student with a class code? Join your class →