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

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top