Check if a given value is out of certain range

John Gordon gordon at panix.com
Wed Sep 30 11:42:59 EDT 2015


In <mugaov$79k$1 at speranza.aioe.org> alister <alister.nospam.ware at ntlworld.com> 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 panix.com              B is for Basil, assaulted by bears
                                -- Edward Gorey, "The Gashlycrumb Tinies"




More information about the Python-list mailing list