On Thu, Nov 1, 2012 at 9:32 AM, inshu chauhan <[email protected]> wrote:
> what is the most pythonic way to do this :
>
> if 0 < ix < 10 and 0 < iy < 10 ???
>
I suppose you could do
if all(0 < i < 10 for i in (ix, iy)):
but I think that the original is more readable unless you have several
variables to test.
-- http://mail.python.org/mailman/listinfo/python-list
