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