You can download this code by clicking the button below.
This code is now available for download.
Appends a key-value pair to a dictionary and returns the updated dictionary.
Technology Stack : Dictionary
Code Type : Function
Code Difficulty : Intermediate
def append_to_dict(dictionary, key, value):
dictionary[key] = value
return dictionary