[Tutor] finding numbers in range of of numbers

W W srilyk at gmail.com
Tue Oct 21 00:42:11 CEST 2008


On Mon, Oct 20, 2008 at 5:19 PM, Srinivas Iyyer
<srini_iyyer_bio at yahoo.com>wrote:

> dear group,
> a simple question that often challenges me.
>
> I have
>
> I have a list of list:
>
> [[10,45],[14,23],[39,73],[92,135]]
>
> I want to identify if any of the items in this list are in range of [5,100]
>
> These numbers are large in original data, I will be using xrange for memory
> issues.
>
>  thank you.
> srini


a simple comparison should do it for ya,
HTH,
Wayne
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20081020/da62c175/attachment.htm>


More information about the Tutor mailing list