8/11 Modifying


#1



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().


new
uesd
None

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    
my_car.drive_car()
print my_car.condition


#2

i already know why.. just misspell


#3

Hi!

See this:

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

Hope this helps! :wink:


#4

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