input_list = ["a", 1, "b", 2, "c", 3] {input_list[2*i]:input_list[2*i+1] for i in range(len(input_list)/2)}