I have a list \'a\'
a= [(1,2),(1,4),(3,5),(5,7)]
I need to find all the tuples for a particular number. say for 1 it will be
for item in a: if 1 in item: print item