Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/geekcomputers/Python
/ pop
Method
pop
Infix_to_Postfix.py:24–29 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
22
23
# Pop the element from the stack
24
def
pop(self):
25
if
not self.isEmpty():
26
self.top -= 1
27
return
self.array.pop()
28
else
:
29
return
"$"
30
31
# Push the element to the stack
32
def
push(self, op):
Callers
1
infixToPostfix
Method · 0.95
Calls
1
isEmpty
Method · 0.95
Tested by
no test coverage detected