1a_dict = {'color': 'blue', 'fruit': 'apple', 'pet': 'dog'}
2for key, value in a_dict.items():
3 print(key, '->', value)
1a_dict = {'color': 'blue', 'fruit': 'apple', 'pet': 'dog'}
2keys = a_dict.keys()
3keys
4
5#prints:
6#dict_keys(['color', 'fruit', 'pet'])
7