I have some dictionary in python, and I want to assign a list as value for each key of the dictionary, however I need to use the append () method to add elements, but after adding the elements in the list, the value of the key is None.
Ex:
dic = {}
lista = []
dic['a'] = lista.append('a')
print dic
{a:None}
How do I solve this problem?