d = {'x': 1,'y': 2,'z': 3}
for key in d:
    print(f"{key} corresponds to {d[key]}")

# zhengjuns-MacBook-Pro:chapter05 zhengjun$ python3 dict_iteration.py
# x corresponds to 1
# y corresponds to 2
# z corresponds to 3