So far, the program finds the average and prints it out. However, I'm not sure how to include the max & the min.
Need to find the max & the min of the values and minus them before calculating the average.
Question reads: Read in integers until the user enters -1. If there were at least 3 values, show the average excluding the biggest and smallest number. If there are less than 3 values, print nothing.
value = int(input("Value: "))
count = 0
sum = 0
max = 0
min = 0
while value != -1:
sum += value
count += 1
value = int(input("Value: "))
if count >= 3:
average = sum / count
print ("Middle average =", average - max - min)