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
Oh, sorry! I'm new to programming, so, that is something new for me. Thanks for you reply! I will learn from it.
This comment is hidden because it contains spoiler information about the solution
I'm not sure but I had been doing this same code and i am getting an error
This comment is hidden because it contains spoiler information about the solution
thats what all of this code is doing. thats the whole point of this kata
i think this solution is better because you're checking first whether the output is valid or not