lesson
Count what is really inside
1 · Learn
Trace instructions in their actual order. In 'repeat 3: move 2, turn right', both actions happen three times. A command after the loop happens only after the loop finishes.
A bug may be a wrong repeat count, wrong unit, missing event or command outside the intended block. Change the identified cause and rerun from the same start.
2 · Worked example
A shape should move four times but moves five. I inspect the repeat count and any extra move after the loop, rather than changing random numbers.
3 · Your turn
Repeat 3 times: add one dot. After the loop, add one more dot. How many dots are added?
Check your answer
Four: three from the loop and one after it.
4 · Apply your learning
Create a short program with one deliberate loop mistake. Ask a partner to predict and explain the first mismatch, then fix and retest it.
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