Check if a stack is empty.
(self)
| 41 | return self.stack[-1] |
| 42 | |
| 43 | def is_empty(self): |
| 44 | """ Check if a stack is empty.""" |
| 45 | return not bool(self.stack) |
| 46 | |
| 47 | def size(self): |
| 48 | """ Return the size of the stack.""" |
no outgoing calls
no test coverage detected