Varied amount of input data Statistics are often calculated with varying amounts of input data. Write a program that takes any n
umber of integers as input, and outputs the average and max. Ex: When the input is 15 20 0 5, the output is:
1 answer:
In Python 3.8:
nums = list(map(int, input("Enter your numbers space separated: ").split()))
print(f"The largest number is {max(nums)} and the average of all the numbers entered is {sum(nums)/len(nums)}")
You might be interested in
The 13th amendment (freed the slaves) for me because I am black
Answer:
Yes
Explanation:
As long as they were legally copied
Probably 2 but that's just a guess.
Answer:
By pushing cancel
Explanation:
It's simple