Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ evaluate
Method
evaluate
example_code/item_049.py:118–121 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
116
self.right = right
117
118
def
evaluate(self):
119
left = self.left.evaluate()
120
right = self.right.evaluate()
121
return
left + right
122
123
class
MultiplyNode(Node):
124
def
__init__(self, left, right):
Callers
nothing calls this directly
Calls
1
evaluate
Method · 0.45
Tested by
no test coverage detected