Question from the Python - Fundamentals test

Convert a list of tuples into a dictionary in Python

Easy

How can you convert a list of tuples into a dictionary? For example:
[(1, 'one'), (2, 'two')] to {1: 'one', 2: 'two'}

Author: Amani BEN HADJ BRAIEKStatus: PublishedQuestion passed 9 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!