Question: To solve this problem, I ll walk through the steps and how the code can structured. Here s the implementation: - You need to write

To solve this problem, Ill walk through the steps and how the code can structured. Heres the implementation:
- You need to write a program that calculates the average temperature.
The following rules apply to your program.
-program should be able to handle incorrect inputs.
-Valid users input may be a float
-Display an error message if the input is not a number.
-Try and except must be as narrow as possible.
-After the user enters done, display the average temperature for the data entered.
-The program will stop when the user enters the word done.
-Done may be typed in lowercase, uppercase, or mixed case.
output:
enter temp: 27.8
enter temp: 25
enter temp: five
invalid input
enter temp: done
average temp: 22
Python DONT USE CHATGPT OR ANY AI

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!