Looping over the "dictionary" is just like looping over the keys.

examples/dictionary/loop_dictionary.py
from __future__ import print_function

user = {
    'fname': 'Foo',
    'lname': 'Bar',
}

for k in user:
    print("{} -> {}".format(k, user[k]))

# lname -> Bar
# fname -> Foo