Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
python dict from list of tuples
Ayush
Programming language:
Python
2021-06-23 08:08:34
0
Q:
python dict from list of tuples
tommj
Code:
Python
2021-07-25 17:37:39
>>>
my_list = [(
'a'
,
1
), (
'b'
,
2
)]
>>>
dict
(my_list) {
'a'
:
1
,
'b'
:
2
}
1
Tags
python
list
dict
Related
python list of tuples
dictionary from two lists
filter list of tuples python
dict comprehension python
create dictionary python from two lists
python list of tuples to two lists
dict from two list python
python convert list to tuple
python dictionary comprehension
dictionary comprehension python
list to dict python
how to search tuple values in a list in python
python 3 how to set a dictionary from two lists
python convert list of tuples to list of lists
are tuples in python mutable
list of tuples python
python get dict values as list
New to Communities?
Join the community