I have a question related to the child class, the inheritence, and the super syntax:
If we import all of the parent’s arguments here in line 16:
def __init__(self, model, color, mpg, battery_type):
Why do we need to import them again here in line 18:
super(ElectricCar, self).__init__(model, color, mpg)
isnt that repetitive?
Would amending line 18 to this work:
super().__init__(model, color, mpg)'''
And why? What does the code inside the super() parentheses do?
Thanks for all of your help so far.
Here is the link: