Question

Write a program that displays the Olympic rings. Color the rings in the Olympic colors in...

Write a program that displays the Olympic rings. Color the rings in the Olympic colors in python

Homework Answers

Answer #1

//import or install turtle library in compiler//

import turtle

circle_1= turtle.Turtle()
circle_1.pensize(5)
circle_1.color("blue")
circle_1.penup()
circle_1.backward(128)
circle_1.pendown()
circle_1.circle(50)

circle_2 = turtle.Turtle()

circle_2.pensize(5)

circle_2.color("butts")

circle_2.circle(50)


circle_3 = turtle.Turtle()
circle_3.pensize(5)
circle_3.color("red")
circle_3.penup()
circle_3.forward(128)
circle_3.pendown()
circle_3.circle(50)

circle_4 = turtle.Turtle()
circle_4.pensize(5)
circle_4.color("yellow")
circle_4.penup()
circle_4.backward(114)
circle_4.right(90)
circle_4.pendown()
circle_4.circle(50)

circle_5 = turtle.Turtle()
circle_5.pensize(5)
circle_5.color("green")
circle_5.penup()
circle_5.forward(14)
circle_5.right(90)
circle_5.pendown()
circle_5.circle(50)

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Color. Write a program that displays the color of the camera whose item number is entered...
Color. Write a program that displays the color of the camera whose item number is entered by the user. All item numbers contain exactly seven characters. All items are available in four colors: black, green, red, and white. The fourth character in the item number indicates the item’s color, as follows: a B or b indicates Black, a G or g indicates Green, an R or r indicates Red, and a W or w indicates White. If the item number...
using python Write a program that displays all of states in the U.S. and display each...
using python Write a program that displays all of states in the U.S. and display each state that begins with the letter A.
The Color Mixer The colors red, blue, and yellow are known as the primary colors because...
The Color Mixer The colors red, blue, and yellow are known as the primary colors because they cannot be made by mixing other colors. When you mix two primary colors, you get a secondary color, as shown down below. Once you have complete that task, use a repetition structure down below. When you mix red and blue, you get purple. When you mix red and yellow, you get orange. When you mix blue and yellow, you get green. Using While...
write a simple program that displays 4 python primitive data types sizes in bytes run the...
write a simple program that displays 4 python primitive data types sizes in bytes run the program on a command prompt CMD. attach a photo of the source file in the text editior and the excutable on CMD ex; the size of int in bytes is ... the size of floot in bytes is ... the size of string in bytes is ... the size of char in bytes is ....
Write a Python program that displays row by row cosine value from 0 degrees to 360...
Write a Python program that displays row by row cosine value from 0 degrees to 360 degrees with a step of 15 degree. Desired output 0 degree = 1.00 15 degree = 0.97 30 degree = 0.87 ... 360 degree = 1.00
Write a program that prompts the user to enter a string and displays the number of...
Write a program that prompts the user to enter a string and displays the number of characters it contains, fourth character, and last character. Note: The string may contain blanks. For example: “C++ programming is fun”. You should write a complete program.
Write a PYTHON program that displays a weekly payroll report. A loop in the program should...
Write a PYTHON program that displays a weekly payroll report. A loop in the program should ask the user for the employee number, gross pay, state tax, federal tax, and FICA withholdings. The loop will terminate when 0 is entered for the employee number. After the data is entered, the program should display totals for gross pay, state tax, federal tax, FICA withholdings, and net pay. Input Validation: ▪ Do not accept negative numbers for any of the items entered....
In Python only. Write a program that prompts the user to enter a hex character and...
In Python only. Write a program that prompts the user to enter a hex character and displays its corresponding decimal integer.
1. a)Write a program that displays the name and address of your college in C# b)Write...
1. a)Write a program that displays the name and address of your college in C# b)Write a program that prompts the user for his name and average monthly visa bill. The program displays his name and his annual visa bill. You must match the format exactly: Name: Justin Bieber Annual Visa Bill: $12,000.00 Hint: annual bill = monthly bill * 12 c)Write a program that prompts the user for a letter. The program prints the letter and the number equivalent....
Write a program that requests some grades as inputs, and displays the average after dropping the...
Write a program that requests some grades as inputs, and displays the average after dropping the smallest and the largest grades! Your program should stop asking the user for a new grade when the user typed any negative number. Here is a sample run: Enter a grade?40 Enter a grade?50 Enter a grade?60 Enter a grade?70 Enter a grade?80 Enter a grade?90 Enter a grade?100 Enter a grade?-1 70.0 Note that in this example 40 is the lowest grade and...