Oops, try again. my_car does not appear to be an instance of ElectricCar
I don't understand what am I doing wrong. I've gone through the messages on the forums, and used the super() method although it wasn't theoretically introduced yet, and the code is still not working. any ideas?
class Car(object): condition = "new" def __init__(self, model, color, mpg): self.model = model self.color = color self.mpg = mpg def display_car(self): print "This is a %s %s with %s MPG." %(self.color,self.model,self.mpg) def drive_car(self): self.condition = "used" class ElectricCar(Car): def __Init__(self, model, color, mpg, battery_type): super(ElectricCar,self).__init__(model, color, mpg) self.battery_type = battery_type my_car = ElectricCar("DeLorean", "silver", 88, "molten salt")