merge multiple dicts with same key code example
Example 1: merge two dict python 3
z = {**x, **y}
Example 2: merge multile dict
dict1 = {"a":1, "b":2}
dict2 = {"x":3, "y":4}
merged = {**dict1, **dict2}
print(merged) # {'a': 1, 'b': 2, 'x': 3, 'y': 4}