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.
I think it's possible to print them when running the test.
It says it right there in the description: "Any whitespace at the end of the line should also be stripped out."
It would be nice if we could actually see the input for the random tests. It's a bit frustrating to not to be able to see the cases where your solution is failing.
Other than that nice kata; not too hard, not too easy :D
This was very confusing. It never really made it clear you had to stop after the newlines, and for some reason you also had to apply an rstrip on each line to pass the tests even though that was never given as a requirement.
Not to be mean, but I'm not sure this is the best solution. There have been more concise ways of doing this given below, and using if conditions and returns in the same line makes me uncomfortable.
This comment is hidden because it contains spoiler information about the solution