1. Take two dictionaries and sets focus on the same key value is added.
from collections import Counter
x = { 'apple': 1, 'banana': 2 }
y = { 'banana': 10, 'pear': 11 }
X,Y = Counter(x), Counter(y)
z = dict(X+Y)
[out] z = {'apple': 1, 'banana': 12, 'pear': 11}
2. References