The update() method merges one dictionary into another: python d1 = {"a": 1, "b": 2} d2 = {"b": 3, "c": 4} d1.update(d2) print(d1) # {"a": 1, "b": 3, "c": 4} Keys from d2 are added to d1.
If a key exists in both, d2's value wins. In Python 3.9+, you can also use |: python d3 = d1 | d2 # Creates new dictionary