Question: ****************PYTHON******************* I need help updating this scenario that was given to me. I need to add a function and a list or dictionary Scenario: If

****************PYTHON*******************

I need help updating this scenario that was given to me. I need to add a function and a list or dictionary

Scenario: If the weather is 30-50 outside, you decide to wear a hoodie or a jacket. Unless the weather outside is from 50-70, you decide to just wear a sweater or T-shirt, and if the weather outside is 70-90, go to the beach!

Code: (what I came up with)

temp_f = int(input("Enter current temperature (Fahrenheit):"))

if temp_f <= 30:

print(" Wear a coat!")

elif temp_f <= 50

print(" Wear a hoodie or jacket!")

elif temp_f <= 70

print(" Wear a sweater or t-shirt!")

else:

print(" Go to the beach!")

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!