Session 4, #2: Looping Through Lists


We can also loop through other values:

Here, our list is different colors. Each time through the loop, tortuga is set to the next color on the list, then moves forward and turns. tortuga keeps going until she has used up every color in the list.