Jul 25, 2017 · 1 min read
Hi Vihar! Great stuff here. Just a question regarding the section on constructors: isn’t the idea to set these values in __init__() and then print the same values to the console with the other methods? Why are you setting self.name and self.year_of_birth in __init__() and then never referencing them again? Would make more sense to print self.name in detail(), instead of not using self at all and printing a parameter. So replace “detail(self, name) / print name” with “detail(self) / print self.name,” since self.name is set for an instance of Person() by its constructor. Isn’t that the point of having constructors? :)