Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/subbarayudu-j/TheAlgorithms-Python
/ size
Method
size
data_structures/stacks/stack.py:47–49 ·
view source on GitHub ↗
Return the size of the stack.
(self)
Source
from the content-addressed store, hash-verified
45
return
not bool(self.stack)
46
47
def
size(self):
48
""
" Return the size of the stack."
""
49
return
len(self.stack)
50
51
52
class
StackOverflowError(BaseException):
Callers
1
stack.py
File · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected