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

Function size

stack.py:11–12  ·  view source on GitHub ↗
(stack)

Source from the content-addressed store, hash-verified

9
10# Function to determine the size of the stack
11def size(stack):
12 return len(stack)
13
14
15# Stack is empty if the size is 0

Callers 1

isEmptyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected