Question: how to convert list1 to list2?

```
list1 =[[1, 11], [2, 22], [3, 33], [4, 44]]
list2 = [[{1:2},{11:22}],[{3:4},{33:44}]]

```

key of list 2 is odd elements of list1, while value of list2 is even number of list1

I've tried like below, but get different list3.

```
def f(list1):

    newlist=[]
    for i in range(0, len(list1), 2):
        dict1={}
        for j,key in enumerate (list1[i]):
            dict1[key]=list1[i+1][j]
            newlist.append(dict1)  
    print newlist

f(list1)
[{1: 2, 11: 22}, {1: 2, 11: 22}, {33: 44, 3: 4}, {33: 44, 3: 4}]

```

Answer: 
Is this what you're looking for:

```
list2 = []
ind = 0
while ind < len(list1):
    d1 = {list1[ind][0]: list1[ind+1][0]}
    d2 = {list1[ind][1]: list1[ind+1][1]}
    list2.append([d1, d2])
    ind += 2
print list2        # prints [[{1: 2}, {11: 22}], [{3: 4}, {33: 44}]]

```
```
newlist=[]

for i in range(0, len(list1), 2):
   dict1={} 
   for j,key in enumerate (list1[i]):
        dict1[key]=list1[i+1][j]
   newlist.append([dict1])
print newlist

```

update my coding, from newlist.append(dict1) under 2nd for to newnlist.append([dict1]) under 1st for