Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
The kata works fine. If this code is failing, it's wrong.
hhh ,
I see that this kata requires a little work
This comment is hidden because it contains spoiler information about the solution
Hi, @maryAndreeva,
I think it's not an issue.
[1,-1] should equals to
False
, because women and man have the same number, so Arthur don't need to invite more women ;-)Of course you still need to do that normally, but in this kata the author has already defined the init() method in the Animal class in the preloaded section. So the cat class also has that method.
The cat class is extended from the parent class 'Animal'. This means that when you create a new cat, it will also have the attributes defined in the animal class - in this case, its name.