xxxxxxxxxx
# Let's say we have a dictionary called my_dict
my_dict = {'key1': 'value1', 'key2': 'value2'}
# We can use a for loop to iterate over the keys in the dictionary and print each key-value pair
for key in my_dict:
print(key, my_dict[key])
# This will output the following:
# key1 value1
# key2 value2