Write a python program to merge two dictionaries


Topic: Write a python program to merge two dictionaries

Solution

dict_1 = {'apple': 9, 'banana': 6}
dict_2 = {'banana': 4, 'orange': 8}
combined_dict = {**dict_1, **dict_2}
print(combined_dict)



List all Python Programs