I have 2 issues with the code below:
Should I throw an exception if pop()
No need to jump through these loops, See 5.1.1 Using Lists as Stacks
If you insist on having methods isEmpty() and push() you can do:
isEmpty()
push()
class stack(list): def push(self, item): self.append(item) def isEmpty(self): return not self