Question: Write the code for the function tempDescription. It should take temp as a parameter that represents a temperature in degrees F . It should return

Write the code for the function tempDescription. It should take temp as a parameter that represents a temperature in degrees F. It should return the string "Hot" if the temp is above 80, "Warm" if it is not above 80 but is above 70, "Cool" if it is not above 70 but is above 60, and "Cold" otherwise (below 60).
Hint: You dont have to solve it all at once. You can start with just an if that only handles temps greater than 80. Then add an elif to handle the Warm temps. Then add one for Cool...
Make sure to return the answers and not just print them.

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 Programming Questions!