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 are looking for?

```
def f(lista):
    lnew = []
    i=0
    while i < len(lista):
        dict1 = {lista[i][0]:lista[i+1][0]}
        dict2 = {lista[i][1]:lista[i+1][1]}
        lnew.append([dict1,dict2])
        i += 2
    return lnew

lold = [[1, 11], [2, 22], [3, 33], [4, 44]]
print(f(lold))

```
```
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