diff --git a/Start/Ch 1/challenge.py b/Start/Ch 1/challenge.py index 050cd6d..594e067 100644 --- a/Start/Ch 1/challenge.py +++ b/Start/Ch 1/challenge.py @@ -10,7 +10,13 @@ # of "Ticker: Company -- $Price" class Stock: - pass + def __init__(self, ticker, price, company): + self.ticker = ticker + self.price = price + self.company = company + + def get_description(self): + return f"{self.ticker}: {self.company} -- {self.price}" # ~~~~~~~~~ TEST CODE ~~~~~~~~~ msft = Stock("MSFT", 342.0, "Microsoft Corp")