Question: Write a program that asks the user for the current weather and gives recommendations based on their input. Ask the user to enter the
Write a program that asks the user for the current weather and gives recommendations based on their input. Ask the user to enter the current weather condition. Your choices can be: Sunny Rainy Snowy Windy Overcast Based on the user input, your program should provide the following recommendations: Sunny: "Wear sunglasses and sunscreen!" Rainy: "Carry an umbrella and wear rain boots!" Snowy: "Wear a warm coat and snow boots!" Windy: "Wear a windbreaker!" Overcast: "Layer up, it might get cold!" If the user enters a weather condition that is not on the list, notify them with a message: "Sorry, I don't recognize that weather condition." After providing a recommendation, ask the user if they want to check for another weather condition. If they say "yes", then repeat the process. If they say any other words, then exit the program with a message: "Stay safe and have a great day!" 61: Write Your Answer for Q4 Over Here Q#5 (5 points) Write a program that calculates the sum of the first n odd numbers. Ask the user to input a positive integer n. Calculate the sum of the first n odd numbers. Display the result to the user. Do not use Python's internal functions for average and maximum. For example, if the user inputs 5, the program should calculate the sum of the first 5 odd numbers: 1+3+5+7+9=25.
Step by Step Solution
3.53 Rating (156 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
