Did You Know?
Even when they create the same design,
Elsa’s and Anna’s drawings look slightly
different. This is because they each have
a unique drawing style. Elsa creates
her drawings with ice magic, and Anna
creates hers with ice skates.
21
4
Drag another
repeat
loop into the
workspace. Change the parameter to “3.”
Put the first two lines of code for the triangle
inside the loop. Then remove the rest of the
triangle code.
5
Click your two
repeat
loops into place under
the
set character
block. Your program will
look like this:
Now run your code. You’ll see that Elsa’s
design is the same as Anna’s from page 14.
You’ll also notice that using the
repeat
loops
saves us from writing several extra lines of
code. These loops are really useful!