Question
2. When mixed, the primary colors - red, blue, and yellow-create secondary colors-orange, green, and purple. Mix red and blue to get purple Mix
2. When mixed, the primary colors - red, blue, and yellow-create secondary colors-orange, green, and purple. Mix red and blue to get purple Mix blue and yellow to get green Mix yellow and red to get orange Design a program which prompts the user to enter two of the primary colors. If anything other than "red" "blue" or "yellow" is entered, the program should display an error message. If they enter two of the same color, an error message should display. Otherwise, the program should display the name of the new secondary color. Helpful Hint: you can convert any string into lowercase by using the method lower(). For example: letters = 'WXYZ' print (letters.lower()) This will display: wxyz You may find this helpful in case your end user enters "RED" or "Red" instead of "red."
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get StartedRecommended Textbook for
Starting Out With Programming Logic And Design
Authors: Tony Gaddis
5th Edition
0134801156, 9780134801155
Students also viewed these Programming questions
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
View Answer in SolutionInn App