list=['Mary','Bob','Linda']
dictionary={0:'Mary', 1: 'Anna', 2:'Bob', 3:'Alice', 4: 'Linda'}
if list in set(dictionary.values()):
name = dictionary.get(None, list)
values = itemgetter(!*dic)(dictionary)
How can I get keys from the dictionary as the code find out same values from the list and dictionary?
Second question: how can I get different values keys of the dictionary between a list and a dictionary? E,g: print out the keys are [1],[3]
Thank you