I am trying to get average times of the speed skaters with Python and my code will not work. I have searched all over trying to find an answer and I am completely stumped.
print("Enter the skater times in seconds. Input -1 to finish and calculate.")
count = 0
sum = 0.0
number = 1
while number != -1:
    number = input("Enter skater time in seconds: ")
    if number != 0:
        count = count + 1
        sum = sum + number
print ("The number of skaters was: ", count)
print ("The average skater time was:", sum / count)