Question: Project 2 . 3 Age range Asks a user to enter his or her age, then display a corresponding message based on the following decision

Project 2.3 Age range
Asks a user to enter his or her age, then display a corresponding message based on the following decision table:
If Message
Less than 20 or greater than 50 Your age is out of range
20-30 You are in your 20s
30-40 You are in your 30s
40-50 You are in your 40s
Save your file as agerange.py
Project 2.4 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 here:
Mix red and blue, get purple
Mix red and yellow, get orange
Mix blue and yellow, get green
Design a program that
Prompts user to enter names of two primary colors.
If the user enters anything other than red, blue or yellow, displays a error message
Displays the name of the secondary color based on the primary colors the user entered
Save you file as color_mixer.py

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!