Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ActiveState/code
/ mul
Method
mul
recipes/Python/59884_RPN_Stack_class/recipe-59884.py:167–169 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
165
self.pop(2); self.push(newx)
166
167
def
mul(self):
168
newx = self.gety() * self.getx()
169
self.pop(2); self.push(newx)
170
171
def
div(self):
172
newx = self.gety() / self.getx()
Callers
nothing calls this directly
Calls
4
gety
Method · 0.95
getx
Method · 0.95
pop
Method · 0.45
push
Method · 0.45
Tested by
no test coverage detected