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

Method sell

Solutions/3_6/stock.py:50–51  ·  view source on GitHub ↗
(self, nshares)

Source from the content-addressed store, hash-verified

48 return self.shares * self.price
49
50 def sell(self, nshares):
51 self.shares -= nshares
52
53# Sample
54if __name__ == '__main__':

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected