▶ TrainingGet Pro
All tools & lessonsAll toolsAllGet the appApp
Learning departments Music, Math, Cookery, Programming and Art are open – explore →

Block coding lesson 10: Repeat blocks

US version. US grades and US spelling. · UK version of this lesson

A repeat 4 times block runs the blocks inside it 4 times, then the program carries on after it. A complete 35-minute block coding lesson (Grades 2–4), from Unit 4: Repeat. Myrtle the Turtle runs right here in your browser – nothing to install.

Time
35 minutes + 15 min homework
Grade
Grades 2–4 (ages 7–10)
You need
A computer or tablet, squared paper and a pencil
Graded
Instantly, with explanations

For parents: how to use this lesson

You don't need to know anything about coding. The lesson explains each step on screen, the way Mr Babbage, our Head of Computing, likes it: watch Myrtle first, then have a go. Programs are made from blocks – no typing – and every answer is graded straight away.

  1. Before the screen: Clap a rhythm and describe it with a repeat: "repeat 3 times: clap, clap, stamp".
  2. Press Start the lesson below and watch the worked examples together. Press Run and say what each block does before Myrtle does it.
  3. Let your child do the practice on their own. When Myrtle goes the wrong way, that's a clue, not a failure – press Run again and watch which block it is on.
  4. Finish with the talk question: “How do you spot that a program needs a repeat?”
  5. Later that day or the next day: the homework (15 minutes), then a practice test.

Watch out for

  • Thinking the blocks after the repeat are repeated too. Only the blocks INSIDE the repeat are repeated.
  • Counting the repeat one time too many or too few. Count on your fingers: once for each time round.

Miss Lovelace's tip for home: ask your child to be Myrtle. Read out the blocks and let them walk it on the floor. If they can act it out, they understand it.

What your child will learn

Learning goal: use a repeat block.

Success looks like

  • I can use a repeat block.
  • I can say how many times blocks inside a repeat run.
  • I can make a long program shorter with repeat.

Key words

repeat · loop · pattern · inside

The big ideas (for the adult)

A repeat 4 times block runs the blocks inside it 4 times, then the program carries on after it.

Look for a pattern: if the same blocks come again and again, put them in a repeat.

A worked example

repeat 2 times
    move forward 1
end

Press Start the lesson to watch the turtle run it.

The lesson, step by step

35 minutes in 5 parts
PartTimeHow it is checked
Starter5 minGraded by Classfern
Teach8 minWatch, talk and try
Worked example and try it7 minGraded by Classfern
Practice10 minGraded by Classfern
Wrap up5 minGraded by Classfern + self-check

The lesson

It runs here on the page. No sign-up and no names – progress is kept only in this browser. Each visit picks a new mix of questions.

Homework

15 minutes: 5 questions – work out what Myrtle does, then build or fix a program – and a short reflection. New questions every time, all graded instantly. Away from the screen: clap a rhythm and describe it with a repeat: "repeat 3 times: clap, clap, stamp".

Practice tests

All computer science practice tests · All 18 block coding lessons

Curriculum

CSTA K–12 Computer Science Standards (2017), grades 3–5: 1B-AP-10 – Build programs with sequences, events, loops and conditionals; 1A-AP-10 – Build programs with sequences and simple loops.

The standard codes are CSTA's; the descriptions are our own words.

Our lessons, blocks and questions are our own. They are not written or endorsed by any government department, testing agency or exam board.