Question: Write a function, named weather_advice, that gives clothing advice based on the temperature. How it works: The function takes one inputtemp, which represents the temperature
Write a function, named weather_advice, that gives clothing advice based on the temperature. How it works: The function takes one inputtemp, which represents the temperature in degrees Fahrenheit. The function should implement the following logic: If the temperature is 75 degrees or warmer, it suggests wearing shorts and sunscreen. If the temperature is between 40 and 74 degrees, it suggests wearing a light jacket. If the temperature is below 40 degrees, it advises bundling up
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
