You can call list.pop
with passed self
as first argument:
def pop(self):
return list.pop(self)
or super:
def pop(self):
return super(myStack, self).pop()
solved Python – class using pop() [closed]
You can call list.pop
with passed self
as first argument:
def pop(self):
return list.pop(self)
or super:
def pop(self):
return super(myStack, self).pop()
solved Python – class using pop() [closed]