Initial commit
This commit is contained in:
9
Solutions/1_5/stock.py
Normal file
9
Solutions/1_5/stock.py
Normal file
@@ -0,0 +1,9 @@
|
||||
# stock.py
|
||||
|
||||
class Stock:
|
||||
def __init__(self, name, shares, price):
|
||||
self.name = name
|
||||
self.shares = shares
|
||||
self.price = price
|
||||
def cost(self):
|
||||
return self.shares * self.price
|
||||
Reference in New Issue
Block a user