Year 4 (ages 8–9, Grade 3 in the US) · Computing · Loops in Scratch · Lesson 1
Repeat loops
Count-controlled repeat loops in block coding: spotting repetition, rewriting code with repeat, working out totals and fixing loop bugs.
Exam boards: this lesson matches the AQA and Pearson Edexcel GCSE computing courses. Check which course your school follows.

14-minute video lesson
Teaching, worked examples and 20 practice questions solved step by step.
Watch free for a monthWhat your child will learn
- Explain what a loop is
- Rewrite repeated code with repeat
- Predict what a loop does
- Fix a loop bug
The method
- Spot.
- Count.
- Inside.
- Test.
Key words: loop, repeat, count-controlled, algorithm, Scratch, debug.
Worked examples
Worked examples from the lesson, with every step.
Question 1
How far does the sprite move in total?
- Step 1: Read the code
- Step 2: 4 × 25
Answer: 100 steps
Question 2
How far does the sprite move in total?
- Step 1: Read the code
- Step 2: 10 × 5
Answer: 50 steps
Question 3
How many times does the cat meow?
- Step 1: Read the code
- Step 2: repeat 6
Answer: 6 times