8/11 Modifying


I think i got correct answer, but i still got wrong message.

Oops, try again. You didn't display the 'used' condition of the car after drive_car().


Replace this line with your 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):
        print "This is a "+self.color+" "+self.model+" with "+str(self.mpg)+" MPG."
    def drive_car(self):
        self.condition = "uesd"

my_car = Car("DeLorean", "silver", 88)
print my_car.condition    
print my_car.condition


i already know why.. just misspell



See this:

It should be used and not as you have put it.

Hope this helps! :wink:


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