> How do I get it to work after an incorrect number is
> entered?  I am stuck on this and would appreciate and
> help or suggestions?

Use exception

>>> try:
...   int("hoge")
... except(ValueError):
...   print('incorrect')
...
incorrect


> elif number == 1:
>     print "One"
> elif number == 2:
>     print "Two"
> elif ...

Using table is more smart way.

NUMBER_STRINGS = ['Zero', 'One', 'Two', 'Three', ...]
print NUMBER_STRINGS[number]
_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to