I have list = [] and I am adding an element to it using self.list.append('test') and I get this error - AttributeError: 'function' object has no attribute 'append'
The other list that I have defined append just fine, any ideas?
I have list = [] and I am adding an element to it using self.list.append('test') and I get this error - AttributeError: 'function' object has no attribute 'append'
The other list that I have defined append just fine, any ideas?
first of all,you cannot use in-built function 'list' as a variable name and second is that with function object we cannot use append