import turtle
def draw_ring(color, x, y):
turtle.penup()
turtle.color(color)
turtle.goto(x, y)
turtle.pendown()
turtle.circle(50)
turtle.speed(5)
turtle.width(5)
draw_ring("blue", -120, 0)
draw_ring("black", 0, 0)
draw_ring("red", 120, 0)
draw_ring("yellow", -60, -50)
draw_ring("green", 60, -50)
turtle.hideturtle()
turtle.done()
#clcoding.com
0 Comments:
Post a Comment