Hi, the program is showing me this error message : "Oops, try again. Make sure you've defined a new ElectricCar class after defining Car." but when I run my code in PyChar it runs without the problem. Do you know what is the problem?
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 %s %s with %s MPG." % (self.color, self.model, self.mpg) def drive_car(self): self.condition = "used"
def init(self, battery_type):
self.battery_type = battery_type
my_car = EletricCar("molten salt")