Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from turtle import Turtle
- tommy = Turtle()
- def draw_circ(name, r, color, x, y):
- name.color(color)
- name.dot(r*2) # gives diameter
- name.penup()
- name.goto(x, y)
- name.pendown()
- draw_circ(tommy, 200, 'green', 0, 0)
- draw_circ(tommy, 100, 'cyan', 15, 0)
- draw_circ(tommy, 50, 'magenta', 100, 0)
- draw_circ(tommy, 50, 'purple', -50, 45)
- draw_circ(tommy, 10, 'purple', -60, 70)
- draw_circ(tommy, 100, 'red', 30, 20)
- draw_circ(tommy, 70, 'yellow', -45, -57)
- draw_circ(tommy, 50, 'blue', -16, 39)
- draw_circ(tommy, 40, 'purple', -16, 39)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement