Answers for "list of dictionary to list"

4

python dictionary to list

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

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

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

>> d.values()
['Arthur', 'Belling']
Posted by: Guest on July-18-2021
1

list to dictionary

b = dict(zip(a[::2], a[1::2]))
Posted by: Guest on September-27-2021

Code answers related to "list of dictionary to list"

Python Answers by Framework

Browse Popular Code Answers by Language