Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/geekcomputers/Python
/ pop
Function
pop
stack.py:29–32 ·
view source on GitHub ↗
(stack)
Source
from the content-addressed store, hash-verified
27
# Function to remove an item from stack.
28
# It decreases size by 1
29
def
pop(stack):
30
if
isEmpty(stack):
31
return
32
return
stack.pop()
33
34
35
# A stack based function to reverse a string
Callers
1
reverse
Function · 0.70
Calls
2
isEmpty
Function · 0.70
pop
Method · 0.45
Tested by
no test coverage detected