# merge two dictionaries x = {'a': 1,'b':2} y = {'d':3,'c':5} z = {**x, **y} print(z) # {'a': 1, 'b': 2, 'd': 3, 'c': 5}