Draw an Olympic Symbol in Python using Turtle

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



filter_none

edit
close

play_arrow

link
brightness_4
code

import turtle
  
# object tr for turtle
tr = turtle.Turtle()
  
# set thikness 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)

chevron_right


Output:


Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.

To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course.

My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.


Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.