how to spread in an object python code example Example: spread object python >>> d = {'x': '2', 'y': '1'} >>> {**d, 'x':1} {'x': 1, 'y': '1'}