I have a list that I want to use as the keys to a dictionary and a list of tuples with the values. Consider the following:
d = {}
l = ['a', 'b', 'c', 'd', 'e']
t = [(1, 2, 3, 4), (7, 8, 9, 10), (4, 5, 6, 7), (9, 6, 3, 8), (7, 4, 1, 2)]
for i in range(len(l)):
d[l[i]] = t[i]
The list will consistently be 5 values and there will consistently be 5 tuples however there are hundreds of thousands of values in each tuple.
My question is this: what is the FASTEST way to populate the dictionary, d, with the tuples in t, with the keys being the values in l?