My code is as follows:
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 ' + str(self.mpg) + ' MPG' my_car = Car('DeLorean', 'silver', 88) my_car.display_car()
The error reads:
Oops, try again. It looks like you didn't print "This is a silver DeLorean with 88 MPG.".
However the console reads:
This is a silver DeLorean with 88 MPG
How can the error say that I did not print This is a silver DeLorean with 88 MPG when it is clearly written out on the console?