[BangPypers] if not with comparision statement in python

Noufal Ibrahim noufal at gmail.com
Sat Jul 30 10:52:37 CEST 2011


Asif Jamadar <asif.jamadar at rezayat.net> writes:

> What if I have two lists for both minimum and maximum values
>
> Minimum  Maximum
> 0		10
> 11		20
> 21		30	
> 31		40	
>
>
> Now how should I check if actual result is not laying between above ranges
>
> if not minimum<=actual_result and  not maximum>=actual_result:
>
> Any suggestions?		

[...]

Loop through your list and check for each pair. 

-- 
~noufal
http://nibrahim.net.in

Of course I can keep secrets. It's the people I tell them to that can't keep them. -Anthony Haden-Guest


More information about the BangPypers mailing list