+ 2

What might the problem with this code? It's outputs nothing.

https://code.sololearn.com/cd0w6m5ULoFu/?ref=app

29th Nov 2022, 4:44 AM
Alex Kinyua
Alex Kinyua - avatar
1 ответ
+ 18
There is a syntax error in the Cat class. The body of the play() method has 2 closing brackets instead of 1. Delete one } and everything works.
29th Nov 2022, 6:33 AM
Igor Makarsky
Igor Makarsky - avatar