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

Method cost

Solutions/7_5/mymeta.py:19–20  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

17 self.shares = shares
18 self.price = price
19 def cost(self):
20 return self.shares*self.price
21 def sell(self,nshares):
22 self.shares -= nshares
23

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected