Write a program that reads 6 temperatures (in the same format as before), and displays the maximum, minimum, and mean of the values. Hint: You should know there are built-in functions for max and min. If you hunt, you might also find one for the mean.
I managed to do this program. ############################################################################
Modify the previous program so that it can process any number of values. The input terminates when the user just pressed "Enter" at the prompt rather than entering a value.
I want my program to calculate the maximum, minimum and average of any numbers entered by the user using the built in functions such as import. The user will have to be able to enter as many numbers he can in the input
import statistics def my_function(): temp=input("Enter temperature:") temp=int(temp) mean_value=statistics.mean(temp) print(mean_value) my_function()