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

Method sell

Solutions/7_5/mymeta.py:21–22  ·  view source on GitHub ↗
(self,nshares)

Source from the content-addressed store, hash-verified

19 def cost(self):
20 return self.shares*self.price
21 def sell(self,nshares):
22 self.shares -= nshares
23
24class MyStock(Stock):
25 pass

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected