Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python dictionary to list

>> d = {'a': 'Arthur', 'b': 'Belling'}

>> d.items()
[('a', 'Arthur'), ('b', 'Belling')]

>> d.keys()
['a', 'b']

>> d.values()
['Arthur', 'Belling']
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #dictionary #list
ADD COMMENT
Topic
Name
3+3 =