Error: Oops, try again. Make sure you pass the self keyword to the drive_car() method.
I can't figure this out. Any help is appreciated! Here's my 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 %s %s with %s MPG." % (self.color, self.model, mpg) def drive_car(self, condition): self.condition = "used" my_car = Car("DeLorean", "silver", 88) print my_car.condition my_car.drive_car() print my_car.condition