"bob gailer" <[email protected]> wrote
a = raw_input("Enter an integer:")
if a.isdigit():
 # process input

Oops, yes. My posting on this is wrong because you can't compare to int untl after you convert the value. isdigit() is the correct check.

Apologies - too early in the morning...

Alan G

_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to