Creating class methods


#1

https://www.codecademy.com/en/courses/python-intermediate-en-egNXj/1/1

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))
       # return "this is a "+self.color+" "+self.model+" with "+str(self.mpg)+" MPG"
        
        

my_car = Car("DeLorean", "silver", 88)
print my_car.display_car()

it works fine but i keep getting this message

Oops, try again.
It looks like you didn't print "This is a silver DeLorean with 88 MPG.".

#2

The text in the error message contains a full stop (a period) which the above is missing.