Pythondex
Turtle Python Programs

Draw Olympic Rings In Python

Published September 12, 2023 by Jarvis Silva

In this tutorial I will show you how to to draw olympic rings in python, Olympic is an international sporting event where multiple contests are held, the olympic rings which we will draw today is the logo of olympics.

So to draw olympic logo in python we will use the turtle module which allows us to draw things in python so without wasting time let’s create the program.

Python Code To Draw Olympic Rings


#Importing Turtle
import turtle
#set the pensize to 8
turtle.pensize(8)

#first ring
turtle.color('blue')
turtle.penup()
#set the x and y coordinates to -110 and -25
turtle.goto(-110,-25)
turtle.pendown()
#set radius of circle to 50
turtle.circle(50)

#second ring
turtle.color('black')
turtle.penup()
turtle.goto(0,-25)
turtle.pendown()
turtle.circle(50)

#Third ring
turtle.color('red')
turtle.penup()
turtle.goto(110,-25)
turtle.pendown()
turtle.circle(50)

#fourth ring
turtle.color('yellow')
turtle.penup()
turtle.goto(-55,-75)
turtle.pendown()
turtle.circle(50)


#fifth ring
turtle.color('green')
turtle.penup()
turtle.goto(55,-75)
turtle.pendown()
turtle.circle(50)
turtle.done()

Above is the complete python code for drawing the olympics logo or rings, copy the code and paste it in your python file and run it below is the drawing this program will draw.

Olympic rings drawing

Read: Draw Rainbow In Python Using Turtle

As you can see we successfully drawn olympic rings using python, I hope you found this tutorial helpful and useful, do share it with someone who might find it helpful, thank you for reading have a nice day 🙂