0
Please help
Animal | | Mammal / | \ / | \ Cat Dog Primate | | Hacker The Animal class has a common âreplyâ method, and each class has its own âspeakâ method, which is called by the âreplyâ method. https://code.sololearn.com/ceOWajuEfUEp/?ref=app
2 Answers
+ 6
( 1 )
if name == 'main':
should be
if __name__ == '__main__':
( 2 )
return self.speak
shoud be
return self.speak()
if you want to execute the method right away.
https://code.sololearn.com/ca10a799a15A
+ 3
It's `__name__`, not `name`. Also, it's "__main__", not "main". Finally, on line 3, you need to *call* the `self.speak` method.