I have multiple dicts/key-value pairs like this:
d1 = {key1: x1, key2: y1} d2 = {key1: x2, key2: y2}
I want the result to be a new di
A compact possibility
d1={'a':1,'b':2} d2={'c':3,'d':4} context={**d1, **d2} context {'b': 2, 'c': 3, 'd': 4, 'a': 1}