I have a requirement to convert two list into a dictionary. Just wondering if there is an easiet and pythonic way of doing it.
i can acheive that using the code below but wanted to know if this is the right way of doing it
a = ['1.1.1.1','1.1.1.2']
b = ['225.1.1.1','225.1.1.2']
d = {}
for i,j in enumerate(a):
d[j]= b[i]
print(d)