Loading...
Merge and manipulate dictionaries.
Python dictionaries support:
Write a function merge_dicts(dict1, dict2) that merges two dictionaries.
Return the merged dictionary.
dict1 = {"a": 1, "b": 2, "c": "hello"}, dict2 = {"b": 3, "d": 4, "c": " world"}{'a': 1, 'b': 5, 'c': 'hello world', 'd': 4}'a' only in dict1, 'b' in both (2+3=5), 'c' in both (concat), 'd' only in dict2