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

Method cost

Solutions/4_3/validate.py:75–76  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

73
74 @property
75 def cost(self):
76 return self.shares * self.price
77
78 def sell(self, nshares):
79 self.shares -= nshares

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected