MCPcopy Create free account
hub / github.com/dabeaz-course/python-mastery / cost

Method cost

Solutions/7_1/validate.py:122–123  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

120
121 @property
122 def cost(self):
123 return self.shares * self.price
124
125 @validated
126 def sell(self, nshares:PositiveInteger):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected