Converting from dict
to list
is made easy in Python. Three examples:
d = {'a': 'Arthur', 'b': 'Belling'}
d.items() [('a', 'Arthur'), ('b', 'Belling')]
d.keys() ['a', 'b']
d.values() ['Arthur', 'Belling']
as seen in a previous answer, Converting Python Dictionary to List.