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

Method sell

Solutions/3_3/stock.py:18–19  ·  view source on GitHub ↗
(self, nshares)

Source from the content-addressed store, hash-verified

16 return self.shares * self.price
17
18 def sell(self, nshares):
19 self.shares -= nshares
20
21def read_portfolio(filename):
22 '''

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected