Question: 1 . Create a function suggest _ outfit that takes the current temperature ( in deg C ) and whether it's raining ( True

1. Create a function suggest_outfit that takes the current temperature (in \deg C) and whether it's
raining (True/False) as inputs. The function should suggest an appropriate outfit based on the
weather conditions.
Requirements:
If the temperature is below 10\deg C and it's raining, print: "Wear a warm coat and take an
umbrella."
If the temperature is below 10\deg C and its not raining, print: "Wear a warm coat."
If the temperature is between 10\deg C and 20\deg C, print: "Wear a light jacket."
If the temperature is above 20\deg C, print: "It's warm, dress lightly."

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!