for example,
(['2', '3', '5'], ['1', '3', '4', '5'])
the above should yield the numbers 3 and 5
(['1', '2', '4'], ['1', '2'])
this should give out 1 , 2
(['2', '3', '5'], ['1', '2', '4'], ['2', '3'])
this, should give out 2, because 2 is contained in all 3 lists in the tuple. If there is no set it should just return an empty list
for i,e in enumerate(tup):
while index < len(tup):
print(tup[index], tup[index + 1])
index = index + 1
For now i have this, i am not sure how to go through the tup(Tuple) and extract each list to find the set of each 2 lists and iterate and compare with the rest of lists in the tuple