-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathshapes.py
More file actions
46 lines (30 loc) · 1.26 KB
/
shapes.py
File metadata and controls
46 lines (30 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import turtle
#------------------------------------------------------------------------------
# Starter code to get things going
# (feel free to delete once you've written your own functions
#------------------------------------------------------------------------------
# Create the world, and a turtle to put in it
bob = turtle.Turtle()
# Get moving, turtle!
bob.fd(100)
# Wait for the user to close the window
turtle.mainloop()
#------------------------------------------------------------------------------
# Make some shapes
# Work through exercises 1-4 in Chapter 4.3.
#------------------------------------------------------------------------------
# NOTE: for part 2 of 4.3, you will add another parameter to this function
def square(t):
"""
Draw a square using Turtle t
>>> don = turtle.Turtle()
>>> square(don)
"""
pass # Delete this line and replace it with your code
## Polygon
## Circle
#------------------------------------------------------------------------------
# Make some art
# Complete *at least one of* Exercise 2, 3, 4, or 5 in `shapes.py`.
#------------------------------------------------------------------------------
# If you come up with some cool drawings you'd like to share with the rest of the class, let us know!