Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dabeaz-course/python-mastery
/ cost
Method
cost
Solutions/7_4/validate.py:158–159 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
156
157
@property
158
def
cost(self):
159
return
self.shares * self.price
160
161
@validated
162
def
sell(self, nshares:PositiveInteger):
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected