Like has been said here before, use something like:

if i <= 9 and i >= 1:
...and python is cool enough that you can just write

if 1 <= i <= 9:

and it does the right thing.

--Mike

Reply via email to