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.
This comment is hidden because it contains spoiler information about the solution
Nice solution!
You actually don't need the ternary conditional operator, because the default value of a boolean in Java is false.
whoops
Oh, I see. Thank you for your answers!
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.
And I don't need to manually write down what Animal class should do? Neat.
Thsnk you for your explanation!
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.
Can anyone explain to me how it happens that self.name stores a value?
This comment is hidden because it contains spoiler information about the solution
Hi crazy, doublechecked it again and I think there might be a problem in the indentation of your code, in parentheses or anything else which my meager skills to help might encompass at the moment.
I could not reproduce the error and it seems like a lot of other Python translations were submitted already.
If you like, feel free to post under my comment below your code with a spoiler flag :)
I am not the Python translator but I tried a few solutions and everything worked fine! I don't understand why you have a problem, sorry!
I post to the Python translator.
Python
Please which language?
I got this Exception, can not start this Kata:
File "", line 23
test.describe("Example from description")
^
IndentationError: expected an indented block
This comment is hidden because it contains spoiler information about the solution
Loading more items...