I am using the following code:
condition = "new"
def init(self, model, color, mpg):
self.model = model
self.color = color
self.mpg = mpg
return "This is a " + self.color + " " + self.model + " with " + str(self.mpg) + " MPG."
self.condition = "used"
my_car = Car("DeLorean", "silver", 88)
I get the following output:
Which is correct, but I get the following error at the bottom:
Oops, try again. You don't need to display_car().