Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import turtle
- def window(colr, ttle):
- w = turtle.Screen()
- w.bgcolor(colr)
- w.title(ttle)
- return w
- def turtle(colour, size):
- t = turtle.Turtle()
- t.color(colour)
- t.pensize(size)
- return t
- def circle(pt1, diam):
- arc = diam * 3.14159265358979332 / 360
- for i in range(0,360):
- pt1.forward(arc)
- pt1.left(1)
- wn = window("lightgreen", "Task 6")
- t1 = turtle("hotpink", 5)
- circle(t1, 100)
- wn.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement