Combinate 2 lists to a dict ?

J

Jia Lu

Hi all.

I have 2 lists,
a = [1,2,3]
b = ["ooo","aaa","ppp"]

What is the fastest way to make a dict like {1:"ooo",2:"aaa",
3:"ppp"} ?

Thanx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,794
Messages
2,569,641
Members
45,355
Latest member
SJLChristi

Latest Threads

Top