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 300 times
Edit
1
Community EvaluationsNo one has reviewed this question yet, be the first!