Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #tartaruga
- import turtle
- x = 1
- for i in range(8):
- if x == 1:
- cor = "red"
- elif x == 2:
- cor = "blue"
- elif x == 3:
- cor = "green"
- elif x == 4:
- cor = "pink"
- else:
- cor = "black"
- turtle.forward(100)
- turtle.right(90)
- turtle.color(cor)
- if i < 4:
- x += 1
- elif i == 4:
- x = 1
- else:
- x += 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement