Homework 1

Complete the “Homework 1” assignment in ZyBooks. For reference it is repeated below:

Homework 1

Create a turtle graphics program to draw your initials using only lines. (You may choose any pair or trio of letters if you prefer.) See the example image below:

Example initials

Begin by creating a new folder named homework01 and then name your file initials.py.

When run (by pressing the Run button in Thonny), your program should:

The file should:

Hints:

For a complete specification of all the commands supported by the Turtle Application Programmer’s Interface (API), see https://docs.python.org/3/library/turtle.html. In particular, if you want to draw a rounded letter, you may find the circle method helpful:

pen.circle(150, 180) # 180 degrees is half of a circle