store pairs as key in python dictionary code example

Example 1: Python dictionary append

testing1={'one':1,'two':2}
''' update() is the method of dict() merges another dict into existing ones '''
''' it replaces the keys of exisiting ones with the the new ones '''
testing1.update({'two':3,'noice':69}) 
print(testing1) """ {'one':1,'two':3,'noice':69} """

Example 2: python key value pair list

student = {"first_name": "Henry", "last_name": "Smith", "age": 20} # key: value

print(student["first_name"])
>>> Henry