Question: Q. Write a program that prompts the user to enter the radius of the rings and draws an Olympic symbol of ve rings of the
Q. Write a program that prompts the user to enter the radius of the rings and draws an Olympic symbol of ve rings of the same size with the colors blue, black, red, yellow, and green.
So I have the main part of the code done but I do not know how to get the user to input the radius of the rings and was wondering if I can get help in that area. My code that I've worked on will be in the comments below. Also I need the code in python language 3.x using the turtle package and Pycharm
import turtle turtle.penup() turtle.goto(0, 0); turtle.pendown(); turtle.color("black") turtle.fillcolor("yellow") turtle.begin_fill() turtle.circle(50); turtle.end_fill() turtle.color("black"); turtle.penup(); turtle.goto(15, 65); turtle.pendown() turtle.goto(25, 75); turtle.penup(); turtle.goto(15, 75); turtle.pendown() turtle.goto(25, 65); turtle.penup(); turtle.goto(-15, 65); turtle.pendown() turtle.goto(-25, 75); turtle.penup(); turtle.goto(-15, 75); turtle.pendown() turtle.goto(-25, 65); turtle.penup(); turtle.goto(20, 30); turtle.pendown() # turtle.forward() turtle.right(75) turtle.forward(10) turtle.right(180) turtle.forward(5) turtle.left(90) turtle.forward(40) turtle.left(90) turtle.forward(5) turtle.left(180) turtle.forward(10) # turtle.goto(-20, 15); # turtle.penup(); # turtle.goto(15, 105.0/3); # turtle.pendown() # turtle.goto(25, 95.0/3); turtle.hideturtle();
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
