Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import turtle,random
- n = int(input())
- colors = ["red","green","blue","orange","purple","pink","yellow"]
- for i in range(n):
- color = random.choice(colors)
- turtle.forward(i)
- turtle.right(45)
- turtle.color(color)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement