demo_ref_dictionary_update.py:
car = { "brand": "Ford", "model": "Mustang", "year": 1964 } car.update({"color": "White"}) print(car)
C:\Users\My Name>python demo_dictionary_update.py
{'brand': 'Ford', 'model': 'Mustang', 'year': 1964, 'color': 'White'}