knights = {'gallahad': 'the pure', 'robin': 'the brave'}
# use items() to access each key/value pair in dictionary
for k, v in knights.items():
    print(k, v)

# enumerate over list to access each value/index
for i, v in enumerate(['tic', 'tac', 'toe']):
    print(i, v)
