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

Method __init__

Solutions/7_5/mymeta.py:15–18  ·  view source on GitHub ↗
(self,name,shares,price)

Source from the content-addressed store, hash-verified

13
14class Stock(myobject):
15 def __init__(self,name,shares,price):
16 self.name = name
17 self.shares = shares
18 self.price = price
19 def cost(self):
20 return self.shares*self.price
21 def sell(self,nshares):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected