Open In App
Related Articles

Draw an Olympic Symbol in Python using Turtle

Improve Article
Improve
Save Article
Save
Like Article
Like

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:

  • import Turtle module
  • set the thickness for each ring
  • draw each circle with specific coordinates

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:

Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Last Updated : 04 Apr, 2022
Like Article
Save Article
Previous
Next
Similar Reads
Complete Tutorials