A lame question regarding Classes:
class class1:
def __init__(self):
self = []
def insert1(self,x):
self.append(x) /// the object is a list in which x to be appended
a = class1()
a.insert1(5)
And I get: AttributeError: 'class1' object has no attribute 'append'
What am I doing wrong?