Creating class methods


#1




I don't know what i'm doing wrong . It prints this :This is a silver DeLorean with 88 MPG and the error message looks like this :
Oops, try again. It looks like you didn't print "This is a silver DeLorean with 88 MPG.".


 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)
my_car = Car("DeLorean", "silver", 88)
print my_car.display_car()


#2

88 MPG.

the . is missing in your case.


#3

oh ■■■■ , thanks man


#4