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