How to check how many times keys in one dict1exist in dict2. If the keys dict1exist in the dict2variable,, valwith the initial value 4should be subtracted depending on how many times the keys were found.
An example is dict1as follows
print dict1
{(2, 0): 3, (3, 1): 0, (1, 1): 2, (2, 2): 1}
and dict2looks like this:
print `dict2`
{(2, 0): 323, (3, 1): 32, (10, 10): 21, (20, 2): 100}
Since there are two snooze keys between dicts, it valshould be equal 2.
if dict2looks identical dict1then valshould be 0.
, dict1 , dict2 , . , dicts .