Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/geekcomputers/Python
/ isEmpty
Function
isEmpty
stack.py:16–18 ·
view source on GitHub ↗
(stack)
Source
from the content-addressed store, hash-verified
14
15
# Stack is empty if the size is 0
16
def
isEmpty(stack):
17
if
size(stack) == 0:
18
return
True
19
20
21
# Function to add an item to stack .
Callers
1
pop
Function · 0.70
Calls
1
size
Function · 0.85
Tested by
no test coverage detected