Let\'s say I have a list a in Python whose entries conveniently map to a dictionary. Each even element represents the key to the dictionary, and the following o
a
Something i find pretty cool, which is that if your list is only 2 items long:
ls = ['a', 'b'] dict([ls]) >>> {'a':'b'}
Remember, dict accepts any iterable containing an iterable where each item in the iterable must itself be an iterable with exactly two objects.