ZeroDivisionError: float division (baby steps)
calidusdk at hotmail.com
Thu Aug 19 21:33:54 CEST 2004
I am a non programmer who just started with Python. So far I love it.
I would appreciate if you could help me fix this error I get taking this exercise:
print "Enter 0 to exit the loop"
while number != 0 :
number= input("Enter a number: ")
count= count + 1
sum= sum + number
count= count -1
print "The average is: ",sum/count
#the error is in the above line
"ZeroDivisionError: float division"
Thank you in advance, Len
More information about the Python-list