Extend Dict
You are asked to write a Python function named add_key_value_pairs
. This function accepts a dictionary and an arbitrary number of keyword arguments.
The function must add the keyword arguments to the dictionary. If the dictionary originally contains a key that is the same as one of the keyword argument keys, its value must be replaced by the keyword argument's value.
The function should not return anything.
Input | Output |
---|---|
| {'a': 1, 'b': 2, 'c': 3, 'd': 4} |
Constraints
Time limit: 2 seconds
Memory limit: 512 MB
Output limit: 1 MB