1 >>> dict = {"name":"zara", "age": 7} 2 >>> dict2 = {"sex":"female"} 3 >>> dict.update(dict2) 4 >>> dict 5 {'name': 'zara', 'age': 7, 'sex': 'female'}
1 >>> dict = {"name":"zara", "age": 7} 2 >>> dict2 = {"sex":"female"} 3 >>> dict.update(dict2) 4 >>> dict 5 {'name': 'zara', 'age': 7, 'sex': 'female'}