MCPcopy Index your code
hub / github.com/geekcomputers/Python / pop

Function pop

stackF_Harsh2255.py:26–30  ·  view source on GitHub ↗
(stack)

Source from the content-addressed store, hash-verified

24
25# Function to remove an item from stack. It decreases size by 1
26def pop(stack):
27 if isEmpty(stack):
28 return str(-maxsize - 1) # return minus infinite
29
30 return stack.pop()
31
32
33# Function to return the top from stack without removing it

Callers 1

Calls 2

isEmptyFunction · 0.70
popMethod · 0.45

Tested by

no test coverage detected