I have these lists:
list1 = ["a","b","c"]
list2 = ["1","2","3"]
I need to add them to a dictionary, where list1 is the key and list2 is the value.
I wrote this code:
d = {}
for i in list1:
for j in list2:
d[i] = j
print d
The output is this:
{'a':'3','b':'3','c':'3'}
What's wrong with this code? How can I write it so the output is
{'a':'1','b':'2','c':'3'}
Thanks!