Overriding methods


Help me I'm stuck -_-

it says that OOPS,try again. its look like you didnt update the condition of my_car to "like new'.

Replace this line with your code. 
class Car(object):
    condition = "new"
    def __init__(self, model, color, mpg):
        self.model = model
        self.color = color
        self.mpg   = mpg
    def display_car(self):
        return "This is a"+" "+self.color+" "+self.model+" "+"with"+" "+str(self.mpg)+" "+"MPG."
    def drive_car(self):
        self.condition = "used"
class ElectricCar(Car):    
    def __init__(self, model, color, mpg, battery_type):
        Car.__init__(self, model, color, mpg)
        self.battery_type = battery_type  
    def drive_car(self):
        self.conditon ="like new"
my_car = ElectricCar("2015 Ferrari LaFerrari", "purple", 195,"molten salt")
print (my_car.condition)
print my_car.drive_car()
print my_car.condition


here's the output


@istian21: Have you checked and see if the word condition is written correctly? Seems like you forgot an "i" and that might be the thing responsable for the error.