although my code isn't working, from your great help, i now understand this class structure, the code is very ordered, reads nicely,
condition = "new"
def __init__(self, model, color, mpg):
self.model = model
self.color = color
self.mpg = mpg
print "This is a %s %s with %s MPG." % (self.model, self.color,\
my_car = Car("DeLorean", "silver", 88)
this is cool, due to the back ticks, this prints or copies, exactly. very nice, this should help you,
> current error:
> Oops, try again. Did you accidentally delete my_car?
Traceback (most recent call last):
File "python", line 1, in <module>
File "python", line 14, in Car
AttributeError: 'function' object has no attribute 'condition'
i checked the:
spelling-seems to be correct
all :, they seem to be where they are supposed to be
indents, seems to be where the're supposed to be
i don't see any stray commas
seems to me that all the periods are where they are supposed to be
i would appreciate some help..