python code to read values from dictionary code example
Example 1: how to create dictionary in python
d = {'key': 'value'}
print(d)
# {'key': 'value'}
d['mynewkey'] = 'mynewvalue'
print(d)
# {'key': 'value', 'mynewkey': 'mynewvalue'}
Example 2: python dict access
my_dict = {'name':'Jack', 'age': 26}
my_dict['name']