Last Updated : 15 Jul, 2025
Prerequisites: Turtle Programming in Python
The Olympic rings are five interlaced rings, colored blue, yellow, black, green, and red on a white field. As shown in the below image.
Approach:Below is the implementation.
Python3
import turtle
# object tr for turtle
tr = turtle.Turtle()
# set thickness for each ring
tr.pensize(5)
tr.color("blue")
tr.penup()
tr.goto(-110, -25)
tr.pendown()
tr.circle(45)
tr.color("black")
tr.penup()
tr.goto(0, -25)
tr.pendown()
tr.circle(45)
tr.color("red")
tr.penup()
tr.goto(110, -25)
tr.pendown()
tr.circle(45)
tr.color("yellow")
tr.penup()
tr.goto(-55, -75)
tr.pendown()
tr.circle(45)
tr.color("green")
tr.penup()
tr.goto(55, -75)
tr.pendown()
tr.circle(45)
Output:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4