consider a list of lists as given here.
many_lists = [[1,999,91,120,11], [909,800,7620,11], [1,101,800,7620]]
the output of this should be:
output_lst = [11, 1, 800, 7620]
I need to compare each list with the rest of the lists and if there is a common element then it should be in the output.
is there a simpler way to do this without two loops?
edit: (order within the output_list is not important)