Python public recipes
Merge two dictionaries by overwriting the entries that are common between the two dictionaries.
def merge_dictionaries(dict1, dict2):
result = dict1.copy()
result.update(dict2)
return result
Merge two dictionaries by overwriting the entries that are common between the two dictionaries.
def merge_dictionaries(dict1, dict2):
result = dict1.copy()
result.update(dict2)
return result