Object Oriented, Python, Programming.
year, battery_capacity): super().__init__(brand, model, year) self.battery_capacity = battery_capacity def display_battery_info(self): print(f"Battery Capacity: {self.battery_capacity} kWh") In the above code: We define a new class ElectricCar that inherits from the Car class using the syntax class