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

Method sell

Solutions/4_2/validate.py:81–82  ·  view source on GitHub ↗
(self, nshares)

Source from the content-addressed store, hash-verified

79 return self.shares * self.price
80
81 def sell(self, nshares):
82 self.shares -= nshares

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected