Skip to content
Menu

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.

Whiteboard video lesson: Repeat loops

14-minute video lesson

Teaching, worked examples and 20 practice questions solved step by step.

Watch free for a month

What 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

  1. Spot.
  2. Count.
  3. Inside.
  4. 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?

  1. Step 1: Read the code
  2. Step 2: 4 × 25

Answer: 100 steps

Question 2

How far does the sprite move in total?

  1. Step 1: Read the code
  2. Step 2: 10 × 5

Answer: 50 steps

Question 3

How many times does the cat meow?

  1. Step 1: Read the code
  2. Step 2: repeat 6

Answer: 6 times