lesson
Repeat a sequence a known number of times
1 · Learn
A count-controlled loop runs a block of instructions a specified number of times. 'Repeat 4: move 10 steps' performs four moves, for a total of 40 steps in the same direction.
The repeat count and the amount moved are different numbers with different jobs. Say what one repetition does before calculating the total effect.
2 · Worked example
For repeat 3 of clap then tap, the sequence is clap, tap, clap, tap, clap, tap. The loop repeats both enclosed actions.
3 · Your turn
Repeat 5 times: move 6 steps. With no turns, how many steps are moved altogether?
Check your answer
30 steps, because five repetitions of six steps make thirty.
4 · Apply your learning
Write a repeated movement algorithm, predict its result and implement it in an approved block tool. Compare actual and predicted movement.
Adult guidance and safety
Use an adult-approved offline or school-managed application and invented non-personal data. Do not change real network settings, publish recordings or upload others' images. Follow paper models with practical work in a suitable tool and check saved files reopen.
Open your writing and drawing pad
Write, draw or show your working. Use a mouse, pen or finger. This pad is not a submitted answer.
Not saved to your account. Download your drawing as PNG and your typed notes as TXT before leaving or refreshing. They are separate files. Do not enter private information.
Open a picture saved on this device to draw on it again. Opening replaces the drawing, but Undo can restore it. PNG only, up to 4 MB and 4096 × 4096 pixels. The picture stays in this browser; it is not uploaded. Paper lines in a saved picture become part of that picture.
Clear the drawing? Your typed notes will stay. You can undo this action.
Your pad is empty.
Open a UTF-8 TXT file from this device, up to 40 KB and 10,000 characters. It stays in this browser. Opening can be undone until you type again. Downloads keep a new copy; they do not change the file you opened.
Replace the notes on this page with the opened file? Download the current notes first if you want to keep them.
Typed notes are not submitted answers.
Practice this lesson
Lesson resources
Browse the available practice activities and worksheets for this lesson.
Your progress