Traceback (most recent call last):
File "python", line 8, in
File "python", line 4, in init
NameError: global name 'condition' is not defined
I dont understand the error, in codeacedemy it has been accepted.
Replace this line with your code. class Car(object): condition="new" def __init__(self,model,color,mpg): self.model=condition self.color=self.condition self.mpg=self.condition my_car=Car("DeLorean","silver",88) print my_car.condition