Referring to Member Variables


#1



Referring to Member Variables

Oops, try again. The model of my_car should be "DeLorean".

Totally stumped. The console shows the right values. Telling me my_car.model should equal "Delorean." Which is what I think I have....any suggestions?

class Car(object):
    condition = 'new'
    def __init__(self, model, color, mpg):
        self.model = model
        self.color = color
        self.mpg = mpg
my_car = Car("Delorean", "silver", 88)

print my_car.model
print my_car.color
print my_car.mpg


#2

this line:

my_car = Car("Delorean", "silver", 88)

DeLorean should be spelled with a upper case L


#3

omg i promise i went to school...thanks for taking the time to put eyes on it.