Advertisement
Guest User

Untitled

a guest
Dec 15th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. import turtle, random
  2.  
  3. t = turtle.Turtle()
  4.  
  5. def draw_circle(t_name,r,col):
  6. t_name.color(col)
  7. t_name.dot(r*2)
  8. c = ["blue","white","red","yellow","lightblue"]
  9.  
  10. for i in range(100):
  11. x = random.randint(-250,250)
  12. y = random.randint(-250,250)
  13. s = random.randint(50,150)
  14. t.penup()
  15. t.goto(x,y)
  16. draw_circle(t,s,random.choice(c))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement