You are on page 1of 1

Repetition in Scratch

Repetition is a powerful tool when writing computer programs.

REPEAT can be used to tell the computer to run the same commands again and again. It saves
time as the programmer only has to type the commands once.

The computer can be told how many times to run the repeated commands.

Look at these Scratch commands to draw a square:

The same two commands are repeated 4 times. Using repetition would be better.

In Scratch, the repeat block needs to be wrapped around the commands to be repeated.

This tells the computer how many


times to repeat the commands.

These are the repeated commands

Challenge
Can you use repeat to write instructions for scratch to draw a triangle or a hexagon? How
would a rectangle be different? What about a circle?

You might also like