Hi all, I'm puzzled (:-))
Why will this little program crash when you enter the
enter key?
while True:
a = raw_input('number? ')
if a.isdigit():
print 'isdigit'
elif a[0] == '-' and a[1:].isdigit():
print '- + isdigit'
elif a == 'q':
break
else:
print 'no digit'
/\
Vincent
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor
