In the dialogue below, Alphie and
Betty experiment by making a list of coordinates for a sprite to make this drawing:


i is 1, the sprite goes to "item 1 of item 1" and "item 2 of item 1". Then i is 2, so the sprite goes to "item 1 of item 2" and "item 2 of item 2". (Pauses.) Instead of using a for loop and counting from 1 to 8, what if we used the for each block? Here's how I would start it. I'm not sure what goes in the blanks after "x" and "y", though.
draw shape (). Then we could also make a list of coordinates for letter B, C, or any other shape, and our block would draw them.item blocks get confusing. How about if you define a new data type called point that contains an X coordinate and a Y coordinate?
instead of
, which was confusing.

shows that a list value is expected. This animation shows you how to specify the list input type:
draw shape () block so that
produces the animation at the top of the page.note beats to make your sound sequence lists easier to think about.
draw shape () block so that
completes a drawing of a letter A. (Choose the additional cordinates yourself.)draw shape () works with this new list.
hides all the complexity of the lists of coordinates used to draw the shapes.draw message () that takes a list of letters as input and uses draw shape () to draw a message.