examples/dictionary/loop_items.py
from __future__ import print_function
 
user = {
    'fname': 'Foo',
    'lname': 'Bar',
}

for t in user.items():      #  returns tuples
    print("%s -> %s" % t)
    #print("{} -> {}".format(*t))

# lname -> Bar
# fname -> Foo