You can use dict.update:
d.update({'a': 10, 'c': 200, 'c': 30})
This will overwrite the values for existing keys and add new key-value-pairs for keys that do not already exist.
You can use dict.update:
d.update({'a': 10, 'c': 200, 'c': 30})
This will overwrite the values for existing keys and add new key-value-pairs for keys that do not already exist.