Question: Given a person variable: person = [ [ name , Jared ] , [ job , Musician ] , [

Given a person variable:
person =[["name", "Jared"],["job", "Musician"],["city", "Bern"]]
Create a dictionary called answer , that makes each first item in each list a key and the second item a corresponding value. That's a terrible explanation. I think it'll be easier if you just look at the end goal:
{'name': 'Jared', 'job': 'Musician', 'city': 'Bern'}
There are many potential solutions for this, including Dictionary Comprehension

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!