For example, let\'s say I have to dictionaries:
d_1 = {\'peter\': 1, \'adam\': 2, \'david\': 3}
and
d_2 = {\'peter\': 14, \
A quick option (not sure if its the most optimal)
len(set(d_1.keys()).difference(d_2.keys())) == 0