Re: [Tutor] Programming Question

2006-09-19 Thread Hugo González M.
cimjls wrote: > > number = int(raw_input("Please enter a number between > 1 and 10: ")) > if number < 1: > print "That is an incorrect number. Please try > again." > raw_input("Please enter a number between 1 and 10: > ") > if number > 10: > print "That is an incorrect numb

Re: [Tutor] Programming Question

2006-09-19 Thread Hugo González M.
> if number > 10: > print "That is an incorrect number. Please try > again." Maybe you could do better if you check for all valid numbers first, and finally if no valid number has been entered, then print an error message, instead of checking for all possibilities of error. Hint: check that