Question: PYTHON There are two lists A and B. A = ['a,'b',c',d'] B=[ ['z' , 'c' , 'v' , 'b'], ['1' , '2' , '3' ,

PYTHON

There are two lists A and B.

A = ['a,'b',c',d']

B=[ ['z' , 'c' , 'v' , 'b'], ['1' , '2' , '3' , 4'] , ['q' , 'w' , 'e' , 'r'] , ['3' , '5', '6', '8'] ,['a' , 'b' , 'c' , 'd'] , ['h' , 'j' , 'k' , 'l' ] ]

How do you combine the two lists to create a dictionary in a list like this?:

C= [ { 'a': 'z' , '1', 'q', '3' , 'a' , 'h'} , {'b' : 'c' , '2' , 'w' , '5' , 'b' , 'j'} , { 'v' : '3' , 'e' , '6' , 'c' , 'k'} , {'d' : '4' , 'r' , '8' , 'd' , 'l'} ]

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!