def init(self, name):
self.name = name
zebra = Animal("Jeffrey")
Hello, I was able to finish the exercise correctly, but can someone explain to me why putting 'Jeffrey' in the "object" parameter will pass the object as the name?
Basically, I'm not sure how the computer knows that the object argument is specifically designated for the name attribute. Like what if the class had multiple attributes?
Thanks for the help
Replace this line with your code.