Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from turtle import Turtle
- t = Turtle()
- #guess which shap each one is :)
- for i in range(3):
- t.pendown()
- if i <= 0:
- t.right(60)
- t.forward(100)
- else:
- t.right(120)
- t.forward(100)
- t.penup()
- t.hideturtle()
- t.goto(150,150)
- for i in range(5):
- t.pendown()
- if i <= 0:
- t.right(96)
- t.forward(100)
- else:
- t.right(72)
- t.forward(100)
- t.penup()
- t.hideturtle()
- t.goto(-150,150)
- for i in range(5):
- t.pendown()
- if i <= 0:
- t.right(72)
- t.forward(100)
- else:
- t.right(72)
- t.forward(100)
- t.penup()
- t.hideturtle()
- t.goto(-100,-150)
- count = 4
- for i in range(int(count)):
- t.pendown()
- if count %2 == 0:
- if i <= 0:
- t.right(36)
- t.forward(200)
- t.right(90)
- else:
- t.forward(200)
- t.right(90)
- count = count - 1
- else:
- t.forward(50)
- t.right(90)
- count = count - 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement