> Why will this little program crash when you enter the enter key?

[program cut]

Hi Vincent,

What do you mean by "crash"?  Do you get an error message?  If so, can you
show us?


It will also help to think to try playing the situation out without
preconceptions.  In the beginning of the loop, at:

>     a = raw_input('number? ')

what does 'a' contain when you hit enter?


_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to