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
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.
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}"
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.
get_description method should be f"{self.year} {self.make} {self.model}. Also typo at {smake}
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}"
True! They are attributes of self, therefore we can access them through self.