5.6. A Few More turtle Methods and Observations

Here are a few more things that you might find useful as you write programs that use turtles.

Let’s do an example that shows off some of these new features.

If you are curious about how far the turtle is traveling each time the for loop iterates, you can add a print statement inside of the for loop to print out the value of dist.

One more thing to be careful about. All except one of the shapes you see on the screen here are footprints created by stamp. But the program still only has one turtle instance — can you figure out which one is the real tess? (Hint: if you’re not sure, write a new line of code after the for loop to change tess’ color, or to put her pen down and draw a line, or to change her shape, etc.)

Mixed up program

Mixed up program

You have attempted of activities on this page