I\'m trying to figure out how to compare an n number of lists to find the common elements. For example:
p=[ [1,2,3], [1,9,9], .. .. [1,2
p=[ [1,2,3], [1,9,9], [1,2,4]] ans = [ele[0] for ele in zip(*p) if len(set(ele)) == 1]
Result:
>>> ans [1]