I am not able to initialize empty dictionary in python33.
I have tried:
Later i want to insert values using:
In both cases i am getting error "NoneType' object has no attribute 'append'"
I have tried:
Code:
D=dict()
D={}
Code:
D.setdefault(num).append(ansdb2.Rname)
Comment