Functions and Turtles

In this unit you’ll learn about functions while using a fun graphics library called ‘turtle’.

1. Using the turtle library, make a drawing. Use at a minimum the following functions.

goto(x, y)

Each of these functions takes one or more parameters.  Make a drawing of a thing, not just an abstract drawing.   A house or a car would be appropriate.   This will show that you understand the turtle functions.

2.  Use a loop and the turtle drawing functions to make a design.  Use pen and fill colors.    Also make a document with a screenshot of your design and your code.  Make it all fit on one page and print it out in color.

3.  Make some functions of your own!  There are two warmup exercises, called TriangleFunction and SquareFunction.  Then, make your own cool thing with a function in the project called CreativeFunction.  It can be something like a drawing or something like a design – or something only you can imagine.  


The turtle library lets you write interactive programs.  See if you can write a game that uses keyboard and/or mouse input.   I wrote a program I call “tictacturtle” that lets you play tic tac toe, with the turtle drawing the board.

Resources: The Python turtle library