Write a program that displays the Olympic rings. Color the rings in the Olympic colors in python
//import or install turtle library in compiler//
import turtle
circle_1= turtle.Turtle()
circle_1.pensize(5)
circle_1.color("blue")
circle_1.penup()
circle_1.backward(128)
circle_1.pendown()
circle_1.circle(50)
circle_2 = turtle.Turtle()
circle_2.pensize(5)
circle_2.color("butts")
circle_2.circle(50)
circle_3 = turtle.Turtle()
circle_3.pensize(5)
circle_3.color("red")
circle_3.penup()
circle_3.forward(128)
circle_3.pendown()
circle_3.circle(50)
circle_4 = turtle.Turtle()
circle_4.pensize(5)
circle_4.color("yellow")
circle_4.penup()
circle_4.backward(114)
circle_4.right(90)
circle_4.pendown()
circle_4.circle(50)
circle_5 = turtle.Turtle()
circle_5.pensize(5)
circle_5.color("green")
circle_5.penup()
circle_5.forward(14)
circle_5.right(90)
circle_5.pendown()
circle_5.circle(50)
Get Answers For Free
Most questions answered within 1 hours.