1
Why does this errp occur?
"Attributeerror: 'list' Object has no attribute 'apend'" with this code?
class Stack :
def __init__(self) :
self.items = []
def push(self, item) :
self.items.apend(item)
def pop(self) :
return self.items.pop()
def isEmpty(self) :
return (self.items == [])
s = Stack()
s.push(54)
print s.pop()
Which language is using? is most likely to be self.items.append(item) rather than self.items.apend(item)
– TotallyUncool