Check if a given value is out of certain range

John Gordon gordon at
Wed Sep 30 17:42:59 CEST 2015

In <mugaov$79k$1 at> alister <alister.nospam.ware at> writes:

> I would stick with the OP's current solution

> Readability Counts!

I agree.  'if x < 0 or x > 10' is perfectly fine.

John Gordon                   A is for Amy, who fell down the stairs
gordon at              B is for Basil, assaulted by bears
                                -- Edward Gorey, "The Gashlycrumb Tinies"

More information about the Python-list mailing list