I am newbie to Python and need to convert a list to dictionary. I know that we can convert a list of tuples to a dictionary.
This is the input list:
[(L[i], L[i+1]) for i in xrange(0, len(L), 2)]