Advertisement
Arcot

random circles list

Oct 4th, 2021
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. from turtle import *
  2. import random
  3. t=Turtle()
  4.  
  5. colours=["red","green","violet","gold","cyan","orange"]
  6. x=0
  7. y=0
  8. for i in colours:
  9. t.color(i)
  10. t.circle(70)
  11. x=random.randrange(-150,150)
  12. y=random.randrange(-150,150)
  13. t.penup()
  14. t.goto(x,y)
  15. t.pendown()
  16.  
  17. done()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement