For BlockPrograms often require repeating a set of actions. You have already used three ways and will learn a fourth in this lab session.
block is appropriate when you want to repeat the same thing forever.
block is appropriate when you want to repeat the same thing a specific number of times.
block is appropriate when you want to repeat the same thing until some special condition occurs.
block is appropriate when you want to repeat almost the same thing with a change in each step.
The for block lets you simplify long scripts like:
![]()
for block isn't installed automatically. Click on the File
menu at the top of the snap window and select "Import Tools." You'll need to import tools once into each new snap project where you need for.

for block counts by 1 from the first number to the last number, running the script inside it. As the for block counts, it keeps track of the changing number with the variable
. You can use the number in that script. The animation shows how.
i to length, click on the orange oval without dragging it. After you've changed the name, drag it where you want to use it.
for block in the squiral script. What is the result?



-then-say-and-play-letter-3-of-abcdefg)).png)
