Python dictionary append

d = {'key':'value'}
print(d)
# {'key': 'value'}
d['mynewkey'] = 'mynewvalue'
print(d)
# {'mynewkey': 'mynewvalue', 'key': 'value'}

Here is what the above code is Doing:
1. We create a dictionary with a single key:value pair.
2. We print the dictionary.
3. We add a new key:value pair to the dictionary.
4. We print the dictionary again.

Note that the order of the key:value pairs may have changed.