Chapter 2: Loops (Repeat & Forever)
Spot repeating patterns and replace long copies of identical blocks with compact, easy-to-edit loops.
Lesson goal & core concept
Choose cleanly between "repeat (n)", "forever", and "repeat until < >".
A loop wraps around the steps that repeat. Blocks placed AFTER a repeat loop run only once after all repetitions finish.
Step-by-step practice
Work through these steps in the Scratch editor, predicting each result before clicking the green flag.
- Identify the repeated core action (e.g., move + turn).
- Wrap it in a "repeat (n)" block.
- Notice what stays inside the C-block vs. what goes outside.
- Adjust the repeat count to change the shape or distance instantly.
- When green flag clicked
- Repeat 4
- Move 60 steps
- Turn clockwise 90 degrees
- Say Square complete! for 2 seconds
Try it: Traces a 4-sided square and celebrates once at the end.
Mini challenge & next steps
Change the repeat count to 6 and the turn angle to 60° to draw a regular hexagon.
FAQ
How long should I spend on "Chapter 2: Loops (Repeat & Forever)"?
Aim for 15–20 minutes: read the concept, test the small example, modify one value to see what changes, and try the mini challenge.
This guide is provided for educational purposes. Scratch screens and terms may change over time, so please check the official Scratch website as well.