-
Notifications
You must be signed in to change notification settings - Fork 573
Open
Description
The stocks list needs to be fixed to pass the price first. That's because it is extends the abstract class, which has the price field. The fix is:
stocks = [
Stock(342.0, "MSFT", "Microsoft Corp"),
Stock(135.0, "GOOG", "Google Inc"),
Stock(275.0, "META", "Meta Platforms Inc"),
Stock(120.0, "AMZN", "Amazon Inc")
]
See:
python-object-oriented-programming-4413110/Start/Ch 4/challenge.py
Lines 21 to 24 in 7ff2416
Stock("MSFT", 342.0, "Microsoft Corp"), | |
Stock("GOOG", 135.0, "Google Inc"), | |
Stock("META", 275.0, "Meta Platforms Inc"), | |
Stock("AMZN", 120.0, "Amazon Inc") |
SHypoleac
Metadata
Metadata
Assignees
Labels
No labels