I have a dict, of varying length. Each entry has a name and a list as so:
somedict = {'Name': [1, 2, 3], 'Name2': [], 'Name3': [2,3] }
How do I get the intersection for the following list? I need to do it dynamically, I don't know how long the dict will be.
For the above list, the intersection would be empty, I know. But for
somedict = {'Name': [1, 2, 3], 'Name3': [2,3] }
It should return
[2, 3]