1d = {'key':'value'}
2print(d)
3# {'key': 'value'}
4d['mynewkey'] = 'mynewvalue'
5print(d)
6# {'mynewkey': 'mynewvalue', 'key': 'value'}
7
1thisdict = {
2 "brand": "Ford",
3 "model": "Mustang",
4 "year": 1964
5}
6thisdict["color"] = "red"
7print(thisdict)
1# This automatically creates a new element where
2# Your key = key, The value you want to input = value
3dictionary_name[key] = value