how to call a dictionary in python code example
Example 1: dictionary in python
thisdictionary = {'key':'value','key1':'value1'}
print(thisdictionary['key'])
Example 2: how to create dictionary in python
d = {'key': 'value'}
print(d)
# {'key': 'value'}
d['mynewkey'] = 'mynewvalue'
print(d)
# {'key': 'value', 'mynewkey': 'mynewvalue'}