I am currently learning Python with the help of CodeAcademy. My problem may be related to their web application, but my suspicion is I am just wrong on a very fundamental le
In your __init__, you have:
__init__
self.model = model, self.color = color,
which is how you define a tuple. Change the lines to
self.model = model self.color = color
without the comma:
>>> a = 2, >>> a (2,)
vs
>>> a = 2 >>> a 2