Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from turtle import *
- tom = Turtle()
- ##Polygon
- sides = 7
- polygon = 360/sides
- star = 180-(180/sides)
- for z in range(sides):
- tom.forward(100)
- tom.left(star)
- tom.color("red")
- tom.pensize(3)
- ##Circle
- r = 30
- for x in range(6):
- tom.circle(r)
- r = r + 20
- tom.right(180)
- ## Spiral
- sides = 7
- polygon = 360/sides
- star = 180-(180/sides)
- length = 10
- for z in range(sides*7):
- tom.forward(length)
- tom.left(star)
- length = length + 5
- done()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement