Question
Description: The weather is changing, so you decided to write a Python script to determine what to wear based on the temperature: So, if the
Description: The weather is changing, so you decided to write a Python script to determine what to wear based on the temperature: So, if the temperature is between 60 and 80 degrees Fahrenheit, your script will suggest a sweater. Additionally, the hottest day ever in Columbus, GA was 106 degrees Fahrenheit (on June 30, 2012), and the coldest day was -3 degrees Fahrenheit (February 13, 1899). If the user enters a temperature warmer or colder than the record temperatures, display a message informing them of that.
Example 1: Welcome! Let me help you figure out what to wear today. Please enter the temperature: 107 Wow, a new record for the hottest day! It's 107.0 degrees so you should wear a hat
Example 2: Welcome! Let me help you figure out what to wear today. Please enter the temperature: -5 Brrrrrrr! That's a new record for the coldest day! It's -5.0 degrees so you should wear a coat
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started