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 attempt is clever. However, I find it only works if the length of s is even. It assumes that whether the length of s is even or odd, '_' should be added at the end.
As a demonstration:
solution('python') => ['py', 'th', 'on'], which is correct
But solution('pythonista') => ['py', 'th', 'on', 'is', 'ta'], which is incorrect
This comment is hidden because it contains spoiler information about the solution