Nova finds a new kind of repeat line.
It does not say 3 times or 4 times.
It says repeat steps times.
Rocket scratches his head.
How many laps is that?
Raven smiles. Look inside the steps box!
Nova peeks in the steps box.
The box holds 3.
So the loop runs 3 laps.
set steps to 3 repeat steps times: flash lights stop land
Set steps to 5 instead.
Now the loop runs 5 laps.
One number changes the whole loop!
Build a flight with 3 flashes.
Steps starts at 2.
Add one before the loop.
Fill the box before the repeat.
An empty box means zero laps.
set steps to 2 set height to 1 repeat steps times: change height by 2 stop say height
| after | height | true? |
|---|---|---|
| line 2 | 1 | ? |
| lap 1 | 3 | ? |
| lap 2 | 4 | ? |
| Nova says | 5 | ? |
Repeat steps times peeks in the box.
The box sets the number of laps.
Fill the box first!
Great work, Crew!