NEW Explore the Scratch Block Dictionary, tutorials, textbook, and classroom guides

Start learning →

Chapter 2: Loops (Repeat & Forever)

📌 What you will learn

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.
Chapter 2: Loops (Repeat & Forever) — Example
  1. When green flag clicked
  2. Repeat 4
  3. Move 60 steps
  4. Turn clockwise 90 degrees
  5. 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.

Scratch Learning Textbook Home Return to the full 4-stage curriculum overview. Learn more → Scratch Block Dictionary Look up any block used in this chapter. Learn more →

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.