1d = {'key':'value'}
2print(d)
3# {'key': 'value'}
4d['mynewkey'] = 'mynewvalue'
5print(d)
6# {'mynewkey': 'mynewvalue', 'key': 'value'}
7
1# Init the dictionary
2d = {}
3# Add pairs
4key = "Foo"
5value = "Bar"
6d[key] = value
7# or
8d['What_ever_key'] = 'What_ever_value'