i have 2 dict's with the same keys
dict1 = {'version': 222,'name_app': 'foo1'}
dict2 = {'version': 222,'name_app': 'foo1','dir': 'c','path': 'cc'}
Now I like to check if dict1 have the same keys and values as dict2
I like to avoid doing loops and check each key and value in dict1 is in dict 2
is there any pythonic elegant way to do that?
UPDATE
both keys of dict1 most be in dict 2 if only 1 match it is false