What is printed out is:
This is a silver DeLorean with 88 MPG.
The code is:
Creates a new class called “Car”
condition = "new"
Creates a variable called condition that is = to “new”
def __init__(self, model, color, mpg): self.model = model self.color = color self.mpg = mpg
Puts model, color, and mpg within the class
def display_car(self): return "This is a %s %s with %s MPG." %\ (self.color, self.model, self.mpg)
my_car = Car(“DeLorean”, “silver”, 88)
Creates a new instance of the class called “my_car”
Makes model = DeLorean, color = silver, and mgp = 88
But I get this error message:
Oops, try again. The only place the actual values of my_car should appear is when it is created; always use member variables to access these values.
What is wrong???