examples/dictionary/dict.py
from __future__ import print_function

user = {}
user['name'] = 'Foobar'
print(user)        # {'name': 'Foobar'}

user['email'] = 'foo@bar.com'
print(user)        # {'name': 'Foobar', 'email': 'foo@bar.com'}

the_name = user['name']
print(the_name)    # Foobar

field = 'name'
the_value = user[field]
print(the_value)   # Foobar

user['name'] = 'Foo Bar'
print(user)      # {'name': 'Foo Bar', 'email': 'foo@bar.com'}