Answers for "how convert list of tuples into list of dictionary python"

7

python dict from list of tuples

>>> my_list = [('a', 1), ('b', 2)]
>>> dict(my_list)
{'a': 1, 'b': 2}
Posted by: Guest on September-30-2020

Code answers related to "how convert list of tuples into list of dictionary python"

Python Answers by Framework

Browse Popular Code Answers by Language