0

I'm just learning python and I don't understand why the else line doesn't work.

The output of the script always gives me the if line and not the else line no matter the size of "count" :

def donuts(count):
     if count>=10: print 'Number of donuts: many'
     else: print 'Number of donuts: ' + `count` 
count = raw_input("Number of donuts: ")
donuts(count)
raw_input("press<enter>")
Martijn Pieters
  • 1,048,767
  • 296
  • 4,058
  • 3,343
Oren.W
  • 1

0 Answers0