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

Method cost

Solutions/3_8/stock.py:47–48  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

45
46 @property
47 def cost(self):
48 return self.shares * self.price
49
50 def sell(self, nshares):
51 self.shares -= nshares

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected