class Car(object): condition = "new" def __init__(self, model, color, mpg): self.model = "DeLorean" self.color = "silver" self.mpg = 88 my_car = Car(model, color, mpg) print my_car.condition print my_car.model print my_car.color print my_car.mpg
I did it myself, it didn't work. Then, I checked hint and saw that I did it as they wanted. It's still not working. What could be wrong?
IGNORE THE INIT, IT HAS THE UNDERSCORES. The forum just prints it out as it is.