Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from turtle import Turtle
- tom = Turtle()
- def draw_circle(name,color, radius):
- name.color(color)
- name.dot(radius*2)
- tom.pendown()
- draw_circle (tom,"blue", 150)
- draw_circle (tom,"red", 100)
- draw_circle (tom,"pink", 50)
- tom.penup()
- tom.forward(300)
- tom.pendown()
- draw_circle (tom,"blue", 150)
- draw_circle (tom,"red", 100)
- draw_circle (tom,"black", 50)
- tom.penup()
- tom.backward(600)
- tom.pendown()
Advertisement
Add Comment
Please, Sign In to add comment