7.Creating Class Methods
My code does print "This is a silver DeLorean with 88 MPG." like it's asked, but it still prints " Oops, try again. It looks like you didn't print "This is a silver DeLorean with 88 MPG.", I have no idea why.
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): print "This is a",self.color,self.model,"with",self.mpg,\ "MPG." my_car = Car("DeLorean", "silver", 88) print my_car.condition print my_car.model print my_car.color print my_car.mpg my_car.display_car()