I have 4 lists:
l1 = ['one', 'two', 'three']
l2 = ['one', 'six', 'three']
l3 = ['one', 'four', 'five']
l4 = ['one', 'three','five']
in order to find common intersection of all four lists I would do:
inter = set(l1).intersection(l2).intersection(l3).intersection(l4)
:return: {'one'}
How can I achieve the same with n number of lists in a list?
list_of_lists = [l1, l2, l3, l4]
Thank you in advance.