[Tutor] how to identify a list element is in the range of a tuple element or a list element
srini_iyyer_bio at yahoo.com
Thu Nov 17 15:32:18 CET 2005
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:
Thank you for help in advance.
Yahoo! Mail - PC Magazine Editors' Choice 2005
More information about the Tutor