Check if a given value is out of certain range

Emile van Sebille emile at fenx.com
Tue Sep 29 17:07:23 EDT 2015


On 9/29/2015 2:04 PM, Random832 wrote:
> On Tue, Sep 29, 2015, at 16:32, Mark Lawrence wrote:

>>>
>>> not (0 <= x <= 10)
>>>
>>
>> Yuck.
>
> How about x not in range(11)?


x = 5.5

Emile






More information about the Python-list mailing list