MCPcopy Create free account
hub / github.com/bslatkin/effectivepython / GoodWay

Class GoodWay

example_code/item_053.py:135–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133
134print("Example 10")
135class GoodWay(TimesSevenCorrect, PlusNineCorrect):
136 def __init__(self, value):
137 super().__init__(value)
138
139foo = GoodWay(5)
140print("Should be 7 * (5 + 9) = 98 and is", foo.value)

Callers 1

item_053.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected