"bob gailer" <bgai...@gmail.com> 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 - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor