Wierd error in 6/11


#1

can't figure out what's wrong with this picture.
"Oops, try again. The model of my_car should be "DeLorean"."
i've double and triple checked. tried refreshing the page, emptying my browser cache and removing the "print my_car.condition".
"DeLorean" is printed to the console, everything appears to be working fine. here's my code:


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.condition
print my_car.model
print my_car.color
print my_car.mpg


#2

Hi this line

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

you wrote 'Delorean instead of 'DeLorean' ...the l should be uppercase


#3

hahaha, obviously i wasn't paying close enough attention. thank you!


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.