{"id":10174,"date":"2022-05-05T01:11:46","date_gmt":"2022-05-04T19:41:46","guid":{"rendered":"https:\/\/copyassignment.com\/?p=10174"},"modified":"2022-06-12T13:35:23","modified_gmt":"2022-06-12T08:05:23","slug":"draw-olympic-logo-using-python-turtle","status":"publish","type":"post","link":"https:\/\/copyassignment.com\/draw-olympic-logo-using-python-turtle\/","title":{"rendered":"Draw Olympic logo using Python Turtle"},"content":{"rendered":"\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p>Welcome friends, we will learn how to draw Olympic logo using Python Turtle. This article is going to be very simple and interesting. The new beginners can also easily grasp this kind of article. We have made this more simple by putting comments for the lines of code wherever it is required.<\/p>\n\n\n\n<p>This code is easily understandable, as the logic required is the same for drawing all the circles. The only changes are made in the x and y coordinates for each circle and the color.<\/p>\n\n\n\n<p>You can visit our <a href=\"https:\/\/copyassignment.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">website<\/a> for more articles related to python turtle and its projects. You can visit our website\u2019s search bar or you can also visit our homepage. For the detailed code, you can move to the bottom of the page and copy the code for your reference.<\/p>\n\n\n\n<p>Let&#8217;s start<\/p>\n\n\n\n<h2 class=\"has-medium-font-size wp-block-heading\">1. Importing Turtle<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted has-vivid-green-cyan-color has-text-color has-background\" style=\"background-color:#ededed\">import turtle<\/pre>\n\n\n\n<p>Import function to import the <a href=\"https:\/\/docs.python.org\/3\/library\/turtle.html\" target=\"_blank\" rel=\"noreferrer noopener\">turtle<\/a> package and to use its methods and functionalities.<\/p>\n\n\n\n<h2 class=\"has-medium-font-size wp-block-heading\">2. Creating the first ring of the Olympic symbol<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted has-vivid-green-cyan-color has-text-color has-background\" style=\"background-color:#ededed\">turtle.pensize(8)\nturtle.color('blue')\nturtle.penup()\nturtle.goto(-110,-25)\nturtle.pendown()\nturtle.circle(50)\n<\/pre>\n\n\n\n<p>In this piece of code we have made the pensize of the turtle to 8. set the color of the first ring to blue and set the x and y coordinates to -110 and -25 respectively. The radius of the circle is 50.<\/p>\n\n\n\n<h2 class=\"has-medium-font-size wp-block-heading\">2. Creating the second ring of the Olympic symbol<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted has-vivid-green-cyan-color has-text-color has-background\" style=\"background-color:#eaeaea\">turtle.color('black')\nturtle.penup()\nturtle.goto(0,-25)\nturtle.pendown()\nturtle.circle(50)<\/pre>\n\n\n\n<p>Here we change the ring color to black and set the x and y coordinates to 0 and 25 respectively. This is done to change the position of the circle.<\/p>\n\n\n\n<h2 class=\"has-medium-font-size wp-block-heading\">3.Creating the third ring of Olympic symbol<\/h2>\n\n\n\n<p class=\"has-vivid-green-cyan-color has-text-color has-background\" style=\"background-color:#ebebeb\">turtle.color(&#8216;red&#8217;)<br>turtle.penup()<br>turtle.goto(110,-25)<br>turtle.pendown()<br>turtle.circle(50)<\/p>\n\n\n\n<p>Here again, we changed the circle color to red. The ring is drawn from x coordinate 110 and y coordinate to-25.<\/p>\n\n\n\n<h2 class=\"has-medium-font-size wp-block-heading\">4. Creating the fourth ring of Olympic symbol<\/h2>\n\n\n\n<p class=\"has-vivid-green-cyan-color has-text-color has-background\" style=\"background-color:#ededed\">turtle.color(&#8216;yellow&#8217;)<br>turtle.penup()<br>turtle.goto(-55,-75)<br>turtle.pendown()<br>turtle.circle(50)<\/p>\n\n\n\n<p>In this code line, the ring color is yellow. The circular ring has moved downward cutting the two upper rings, hence we have applied the coordinates as -55 and -75 accordingly.<\/p>\n\n\n\n<h2 class=\"has-medium-font-size wp-block-heading\">5. Creating the fifth ring of the Olympic symbol<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted has-vivid-green-cyan-color has-text-color has-background\" style=\"background-color:#ececec\">turtle.color('green')\nturtle.penup()\nturtle.goto(55,-75)\nturtle.pendown()\nturtle.circle(50)\nturtle.done()\n<\/pre>\n\n\n\n<p>In this part the ring color is green. The circular ring has moved downward right direction cutting the two rings and has applied the coordinates as 55 and -75 accordingly.<\/p>\n\n\n\n<h2 class=\"has-medium-font-size wp-block-heading\">Complete Code to draw Olympic logo using Python Turtle<\/h2>\n\n\n\n<div style=\"height: 250px; position:relative; margin-bottom: 50px;\" class=\"wp-block-simple-code-block-ace\"><div style=\"position:absolute;top:-20px;right:0px;cursor:pointer\" class=\"copy-simple-code-block\"><span class=\"dashicon dashicons dashicons-admin-page\"><\/span><\/div><pre class=\"wp-block-simple-code-block-ace\" style=\"position:absolute;top:0;right:0;bottom:0;left:0\" data-mode=\"python\" data-theme=\"xcode\" data-fontsize=\"14\" data-lines=\"Infinity\" data-showlines=\"true\" data-copy=\"true\">#Importing Turtle\nimport turtle\n#set the pensize to 8\nturtle.pensize(8)\n\n#first ring\nturtle.color('blue')\nturtle.penup()\n#set the x and y coordinates to -110 and -25\nturtle.goto(-110,-25)\nturtle.pendown()\n#set radius of circle to 50\nturtle.circle(50)\n\n#second ring\nturtle.color('black')\nturtle.penup()\nturtle.goto(0,-25)\nturtle.pendown()\nturtle.circle(50)\n\n#Third ring\nturtle.color('red')\nturtle.penup()\nturtle.goto(110,-25)\nturtle.pendown()\nturtle.circle(50)\n\n#fourth ring\nturtle.color('yellow')\nturtle.penup()\nturtle.goto(-55,-75)\nturtle.pendown()\nturtle.circle(50)\n\n\n#fifth ring\nturtle.color('green')\nturtle.penup()\nturtle.goto(55,-75)\nturtle.pendown()\nturtle.circle(50)\nturtle.done()<\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Output<\/h2>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"439\" height=\"342\" data-src=\"https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/05\/image-19.png\" alt=\"output Olympic logo using Python Turtle\" class=\"wp-image-10176 lazyload\" data-srcset=\"https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/05\/image-19.png 439w, https:\/\/copyassignment.com\/wp-content\/uploads\/2022\/05\/image-19-300x234.png 300w\" data-sizes=\"(max-width: 439px) 100vw, 439px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 439px; --smush-placeholder-aspect-ratio: 439\/342;\" \/><\/figure>\n\n\n\n<p>So you can see the output that we have got after running this simple code.<\/p>\n\n\n\n<p>Thank you for reading this article.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p><strong>Also Read:<\/strong><\/p>\n\n\n<ul class=\"wp-block-latest-posts__list wp-block-latest-posts\"><li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/create-your-own-chatgpt-with-python\/\">Create your own ChatGPT with\u00a0Python<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/bakery-management-system-in-python-class-12-project\/\">Bakery Management System in Python | Class 12 Project<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/sqlite-crud-operations-in-python\/\">SQLite | CRUD Operations in Python<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/event-management-system-project-in-python\/\">Event Management System Project in Python<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/ticket-booking-and-management-in-python\/\">Ticket Booking and Management in Python<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/radha-krishna-using-python-turtle\/\">Radha Krishna using Python Turtle<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/hostel-management-system-project-in-python\/\">Hostel Management System Project in Python<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/sales-management-system-project-in-python\/\">Sales Management System Project in Python<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/bank-management-system-project-in-cpp\/\">Bank Management System Project in C++<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/python-download-file-from-url-4-methods\/\">Python Download File from URL | 4 Methods<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/python-programming-examples-fundamental-programs-in-python\/\">Python Programming Examples | Fundamental Programs in Python<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/drawing-letter-a-using-python-turtle\/\">Drawing letter A using Python Turtle<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/spell-checker-in-python\/\">Spell Checker in Python<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/portfolio-management-system-in-python\/\">Portfolio Management System in Python<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/stickman-game-in-python\/\">Stickman Game in Python<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/contact-book-project-in-python\/\">Contact Book project in Python<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/loan-management-system-project-in-python\/\">Loan Management System Project in Python<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/cab-booking-system-in-python\/\">Cab Booking System in Python<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/brick-breaker-game-in-python\/\">Brick Breaker Game in Python<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/wishing-happy-new-year-2023-in-python-turtle\/\">Wishing Happy New Year 2023 in Python Turtle<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/tank-game-in-python\/\">Tank game in Python<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/gui-piano-in-python\/\">GUI Piano in Python<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/ludo-game-in-python\/\">Ludo Game in Python<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/rock-paper-scissors-game-in-python\/\">Rock Paper Scissors Game in Python<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/snake-and-ladder-game-in-python\/\">Snake and Ladder Game in Python<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/puzzle-game-in-python\/\">Puzzle Game in Python<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/draw-goku-in-python-turtle\/\">Draw Goku in Python Turtle<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/medical-store-management-system-project-in-python\/\">Medical Store Management System Project in\u00a0Python<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/draw-mickey-mouse-in-python-turtle\/\">Draw Mickey Mouse in Python Turtle<\/a><\/li>\n<li><a class=\"wp-block-latest-posts__post-title\" href=\"https:\/\/copyassignment.com\/creating-dino-game-in-python\/\">Creating Dino Game in Python<\/a><\/li>\n<\/ul>\n\n\n<hr class=\"wp-block-separator\"\/>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Welcome friends, we will learn how to draw Olympic logo using Python Turtle. This article is going to be very simple and interesting. The&#8230;<\/p>\n","protected":false},"author":62,"featured_media":10186,"comment_status":"closed","ping_status":"closed","sticky":true,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22,1067],"tags":[1426,1386,1427,1093],"class_list":["post-10174","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-allcategorites","category-python-turtle","tag-draw-olympic-logo-using-python-turtle","tag-logo","tag-olympic","tag-turtle-design","wpcat-22-id","wpcat-1067-id"],"_links":{"self":[{"href":"https:\/\/copyassignment.com\/wp-json\/wp\/v2\/posts\/10174","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/copyassignment.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/copyassignment.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/copyassignment.com\/wp-json\/wp\/v2\/users\/62"}],"replies":[{"embeddable":true,"href":"https:\/\/copyassignment.com\/wp-json\/wp\/v2\/comments?post=10174"}],"version-history":[{"count":0,"href":"https:\/\/copyassignment.com\/wp-json\/wp\/v2\/posts\/10174\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/copyassignment.com\/wp-json\/wp\/v2\/media\/10186"}],"wp:attachment":[{"href":"https:\/\/copyassignment.com\/wp-json\/wp\/v2\/media?parent=10174"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/copyassignment.com\/wp-json\/wp\/v2\/categories?post=10174"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/copyassignment.com\/wp-json\/wp\/v2\/tags?post=10174"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}