Return the number of elements in the stack. Returns: The stack size.
(self)
| 85 | return self.items[len(self.items) - 1] |
| 86 | |
| 87 | def size(self) -> int: |
| 88 | """Return the number of elements in the stack. |
| 89 | |
| 90 | Returns: |
| 91 | The stack size. |
| 92 | """ |
| 93 | return len(self.items) |
no outgoing calls