Last Updated: February 25, 2016
·
358
· lamprosmousselimis

Python - Dicts to Lists

dictionary = {'a': 1, 'b': 2, 'c': 3}
dict_as_list = dictionary.items()

# dict_as_list now contains [('a', 1), ('b', 2), ('c', 3)]