My code is below, just trying to implement `defaultdict`

```
out = defaultdict(list)
testdict = [{'local': '9134567890'},
{'local': '9134567890'},
{'global': '0134567890'},
{'others': '9034567890'},
{'others': '9034590'}]
for s in testdict:
    for k,v in s.items():
            out[k].append(out[v])   
out

```

Output 

```
defaultdict(list,
            {'0134567890': [],
             '9034567890': [],
             '9034590': [],
             '9134567890': [],
             'global': [[]],
             'local': [[], []],
             'others': [[], []]})

```

Desired OUt

```
defaultdict(<class 'list'>, {'local': ['9134567890', '9134567890'], 'global': ['0134567890'], 'others': ['9034567890', '9034590']})

```