Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/subbarayudu-j/TheAlgorithms-Python
/ __init__
Method
__init__
data_structures/stacks/stack.py:15–17 ·
view source on GitHub ↗
(self, limit=10)
Source
from the content-addressed store, hash-verified
13
""
"
14
15
def
__init__(self, limit=10):
16
self.stack = []
17
self.limit = limit
18
19
def
__bool__(self):
20
return
bool(self.stack)
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected