Advertisement
jimboulton

Untitled

Mar 7th, 2020
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. # Draw 3 circles to the left
  2. from turtle import Turtle
  3.  
  4. tina = Turtle()
  5.  
  6. def draw_circle(x, y, name, r, colour):
  7. name.goto(x,y)
  8. name.color(colour)
  9. name.dot(r*2)
  10.  
  11. draw_circle(0, 0, tina, 150, "blue")
  12. draw_circle(-50, 0, tina, 100, "red")
  13. draw_circle(-100, 0, tina, 50, "yellow")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement