comparing elements between elements in two lists of tuples,set(x[0] for x in list1).intersection(y[0] for y in list2)