5 Comments
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
VINOD VIJAYAN's avatar

get_description method should be f"{self.year} {self.make} {self.model}. Also typo at {smake}

Expand full comment
Patrick's avatar

In the get_description method, the year, make, and model attributes should be referenced using self.

ie: def get_description(self):

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

Expand full comment
Ardit Sulce's avatar

True! They are attributes of self, therefore we can access them through self.

Expand full comment