Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from turtle import *
- speed(10)
- def triangle(a):
- down()
- fd(a)
- lt(120)
- fd(a)
- lt(120)
- fd(a)
- lt(150)
- up()
- fd(17)
- rt(30)
- a = 300
- for i in range(10):
- triangle(a)
- a = a - 30
- mainloop()
Advertisement
Add Comment
Please, Sign In to add comment