What happens to duplicate keys?
>>> dict1 = {"key1": 1, "key2": "hello", "key3": [1, 2, 3]}
>>> dict2 = {key1": 1, "key2": "world", "key3": [1, 4], "key4": "4"}
>>> {**dict1, **dict2}
{'key1': 1, 'key2': 'world', 'key3': [1, 4], 'key4': '4'} >>> {**{'a': 'first'}, **{'a': 'second'}}
{'a': 'second'}https://www.python.org/dev/peps/pep-0448/
EDIT: yeah, nvm, it's what everyone else said.
>>> a = {'x': 1}
>>> b = {'x': 2}
>>> {**a, **b}
{'x': 2}
>>> {**b, **a}
{'x': 1}