I can't figure out what the heck is wrong, Ive checked the internet on help but nothing is working.
Heres my code:
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))
my_car = Car("DeLorean", "silver", (88)
And this is the error code:
Oops, try again. Make sure you built the display string correctly, adding member variables together with text using +'s.
This is what it says in the window:
File "python", line 12
SyntaxError: invalid syntax