t2 I 107 Repetition in Scratch Activity Sheet

Download as pdf or txt
Download as pdf or txt
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

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy