Discussion about this post

User's avatar
Steven Elkind's avatar

the return statement in get_description() needs to refer to the object's member variables by dereferencing the object using "self.<member-variable>". Note the minor typo "smake" instead of "make" as well

def get_description(self):

return f"{self.year} {self.make} {self.model}"

Expand full comment
Tantaluz's avatar

There should be a self.year on the instance method. Actually there should be self on the others as well. Btw im loving your daily python projects bought your course on udemy. Thanks for this free emails.

Expand full comment
3 more comments...

No posts