Session 1, #4: Pen Up & Pen Down


Turtles drag a pen that traces out the path that they follow. Sometimes that's good (when you want to draw one connected pictures), but other times, you want multiple pieces. Try out the program below:

When you want to draw different parts that are not connected, there are two useful turtle commands:

We're using these to to draw triangles to different parts of the screen (later, we will use to plot earthquakes in different parts of the world). We also used comments-- notes to ourselves to remember what we have done. Anything after the #, the computer ignores when running the program.