2
TurTle Graphics:
DrawinG wiTh pyThon
In this chapter, we’ll write short, simple programs to
create beautifully complex visuals. To do this, we’ll use
turtle graphics. In turtle graphics, you write instruc-
tions that tell a virtual, or imaginary, turtle to move
around the screen. The turtle carries a pen, and you
can instruct the turtle to use its pen to draw lines
wherever it goes. By writing code to move the turtle
around in cool patterns, you can make it draw amaz-
ing pictures.