Hello all, how to find the list element that whether it is on other lists or not?I know by the loop method (found= True). If you know better way please let me know. Thanks.Example:L1 = [1,2,3,4,5]L2=[2,3,6]L3=[1,6,8] L4 = [3,10]

def duplicateListsElements(*lists): counter = Counter() [counter.update(items) for items in lists] result = {} for index in counter.iterkeys(): if counter[index] > 1: result[index] = [items for items in lists if index in items] return result