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

Method cost

Solutions/6_5/validate.py:97–98  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

95
96 @property
97 def cost(self):
98 return self.shares * self.price
99
100 def sell(self, nshares):
101 self.shares -= nshares

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected