I need your help on 9/11. My code is following, I do not know why it returns "my car does not have a model member variable." Could you please help me out what to do here? Than you so much!
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 " + str(self.color) +" "+ str(self.model) + " with " + str(self.mpg) + " MPG." def drive_car(self): self.condition = "used"
def init(self, battery_type):
self.battery_type = battery_type
my_car = ElectricCar("molten salt")