diff --git a/Exotic.py b/Exotic.py new file mode 100644 index 0000000..1ac4b46 --- /dev/null +++ b/Exotic.py @@ -0,0 +1,13 @@ +from Vehicle import Vehicle + +class Exotics(Vehicle): + exotic_brands = ['Ferrari', 'Lamborghini', 'Porsche'] + def __init__(self,brand,model,year,doors,exotic_type): + super().__init__(brand,model,year,doors) + self.exotic_type = exotic_type + + def is_exotic(self): + '''Determins if the car is considered an exotic car''' + if self.brand in Exotics.exotic_brands: + return f"{self.brand} is an exotic car!" + return f"{self.brand} is NOT an exotic car!" \ No newline at end of file diff --git a/Vehicle.py b/Vehicle.py index b8d1401..d516e79 100644 --- a/Vehicle.py +++ b/Vehicle.py @@ -13,10 +13,13 @@ def honk(self): return "Beep beep!" def fuel_up(self): - return "Full tank" + return "Full tank" def windshield_fluid(self): - return "Windshield fluid empty." + return f"Windshield fluid empty. Please consult owners manual for proper filling." def brake(self): print("Braking the car.") + + +