demo_dictionary_add.py:
thisdict = { "brand": "Ford", "model": "Mustang", "year": 1964 } thisdict["color"] = "red" print(thisdict)
➜ begtut>python demo_dictionary_add.py
{'brand': 'Ford', 'model': 'Mustang', 'year': 1964, 'color': 'red'}