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

Function isEmpty

stack.py:16–18  ·  view source on GitHub ↗
(stack)

Source from the content-addressed store, hash-verified

14
15# Stack is empty if the size is 0
16def isEmpty(stack):
17 if size(stack) == 0:
18 return True
19
20
21# Function to add an item to stack .

Callers 1

popFunction · 0.70

Calls 1

sizeFunction · 0.85

Tested by

no test coverage detected