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

Function isEmpty

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

Source from the content-addressed store, hash-verified

13
14# Stack is empty when stack size is 0
15def isEmpty(stack):
16 return len(stack) == 0
17
18
19# Function to add an item to stack. It increases size by 1

Callers 2

popFunction · 0.70
peekFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected