0% found this document useful (0 votes)
323 views1 page

t2 I 107 Repetition in Scratch Activity Sheet

Repetition allows programmers to efficiently run the same commands multiple times without retyping them. In Scratch, the REPEAT block wraps commands and specifies how many times they should repeat, which can be used to draw shapes like squares and triangles by repeating movement and turn commands the appropriate number of times. Challenges include using repetition to draw other shapes like hexagons, rectangles, and circles.

Uploaded by

Bobby
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
323 views1 page

t2 I 107 Repetition in Scratch Activity Sheet

Repetition allows programmers to efficiently run the same commands multiple times without retyping them. In Scratch, the REPEAT block wraps commands and specifies how many times they should repeat, which can be used to draw shapes like squares and triangles by repeating movement and turn commands the appropriate number of times. Challenges include using repetition to draw other shapes like hexagons, rectangles, and circles.

Uploaded by

Bobby
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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