I have to ask the user to put some numbers and then print the size, sum, average, minimum and maximum. I can get the first 3 things but I'm stuck on the minimum and maximum one. The problem I have is I can't use sort() because I need to make the list an integer one, but you can't use an integer list for split()
Here's my code:
number = raw_input('Enter number:')
list_of_numbers = number.split()
tally = 0
sum = 0
while number!= '':
tally = tally + 1
sum = sum + int(number)
average = float(sum) / float(tally)
number = raw_input('Enter number:')
print "Size:", tally
print "Sum:", sum
print "Average:", average
Any hints? Thanks