Dear group, 

I have a list of numbers:

a = [10,3,4.6,2.3,4.8,10.8,4.1]
b = ['1-4','4.1-8','8.1-12','12.1-16']
c = ((1,4),(4.1,8),(8.1-12),(12.1,16))

Now I want to find if elements of list a are in the
range of list b and in the range of tuple b. 

I know (and my limited knowledge on range function) is
not allowing me to think of a new way. 

Could any one please help me.

I wish to have the answer as:

10   8.1-12
3    1-4
etc. 

Thank you for help in advance.

srini


        
                
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com
_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to