I have something like
[('first', 1), ('second', 2), ('third', 3)]
and i want a built in function to make something like
{'first': 1, 'second': 2, 'third': 3}
Is anyone aware of a built-in python function that provides that instead of having a loop to handle it?
Needs to work with python >= 2.6