MCPcopy 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
29def 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

reverseFunction · 0.70

Calls 2

isEmptyFunction · 0.70
popMethod · 0.45

Tested by

no test coverage detected