Help me, i don't understand?


#1

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 %s %s with %s MPG." %(self.color,self.model,str(self.mpg))
    def drive_car(self,condition):
        self.condition="used"
my_car = Car("DeLorean", "silver", 88)
print my_car.condition
condition=my_car.drive_car(condition)
print my_car.condition

#2

why does your drive_car method have a condition parameter? we access the member variable through self, so no need for a parameter when declaring the method and no need for a argument at method call either


#3

ok, tks a lot. <3 <3 <3


#4