Write program that prompts the user to enter names of colors


Python Code Assignment

For this part of the test you will write the code to do the following:

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:

mix red and blue, you get purple

mix red and yellow, you get orange

mix blue and yellow, you get green

Write a program that prompts the user to enter the names of two primary colors to mix. If the user enters anything other than "red", "blue", or "yellow", the program should display an error message. Otherwise, the program should display the name of the secondary color that results.

The response should include a reference list. Double-space, using Times New Roman 12 pnt font, one-inch margins, and APA style of writing and citations.

Solution Preview :

Prepared by a verified Expert
Python Programming: Write program that prompts the user to enter names of colors
Reference No:- TGS02124000

Now Priced at $30 (50% Discount)

Recommended (98%)

Rated (4.3/5)