Skip to content
Related Articles

Related Articles

Draw an Olympic Symbol in Python using Turtle
  • Last Updated : 29 Aug, 2020

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 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)

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. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course

My Personal Notes arrow_drop_up
Recommended Articles
Page :