# Merging two dictionaries in Python dict_a = {'a': 1, 'b': 2} dict_b = {'c': 3, 'd': 4} my_dict = {**dict_a, **dict_b} print(my_dict)