8/11 Help


Here's my code:
class Car(object):
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))
def drive_car(self):
my_car = Car("DeLorean", "silver", 88)
print my_car.condition
print my_car.condition

I can't seem to figure out what I'm doing wrong.


this line


should be


remember the drive_car() function is for the Car class so to invoke you must use an instance of the class in this case my_car


Thanks. I was losing my mind on that one.