add values to dictionary python from code example
Example 1: how to add an item to a dictionary in python
a_dictonary = {}
a_dictonary.update({"Key": "Value"})
Example 2: dictionary append value python
d = {1:2}
d.update({2: 4})
print(d) # {1: 2, 2: 4}