update() - Updates the dictionary with the specified key-value pairs

Updates the dictionary with the specified key-value pairs.  If the key exists, the value will be updated.  If the key does not exist, the key-value pair will be inserted. 

Example

Python
fish = {
    'guppy': 2,
    'zebra' : 5,
    'betta': 10
}

fish.update({'guppy': 3, 'shark': 1})
print(fish)

Output

{'guppy': 3, 'zebra': 5, 'betta': 10, 'shark': 1}