Creating class methods:
Getting a syntax error for a part of code that is the same as in all previous exercises and was working fine.
Oops, try again. Make sure your Car class has a display_car() method.
File "python", line 11
my_car = Car("DeLorean", "silver", 88)
SyntaxError: invalid syntax
Was expecting no syntax error
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, (str(self.mpg)) my_car = Car("DeLorean", "silver", 88) print my_car.display_car()