demo_ref_dictionary_update.py:
car = { "brand": "Ford", "model": "Mustang", "year": 1964 } car.update({"color": "White"}) print(car)
➜ begtut>python demo_dictionary_update.py
{'brand': 'Ford', 'model': 'Mustang', 'year': 1964, 'color': 'White'}