Question: Create a Python program that asks the user to enter the following information: 1 . City 2 . State. 3 . Zip Code. 4 .

Create a Python program that asks the user to enter the following information:
1. City
2. State.
3. Zip Code.
4. Temperature.
Then, the program will compute and output the weather based on the given temperature according
to the following rules:
If the temperature is 90 degrees or above, the weather is Hot.
If the temperature is 70 degrees or above and less than 90 degrees, the weather is Warm.
If the temperature is 40 degrees or above and less than 70 degrees, the weather is Cool.
If the temperature is below 40 degrees, the weather is Cold.
You should use comments as much as possible in the program.

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!