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
This solution is based on the length of the resulting string, so replacing with spaces won't change the length of the initial string because space is still counts towards the length as 1 character, while you want to get the length of the string consisting only from remaining chars.
I did the same thing but I replaced it with the space instead of ''. Can someone explain me please why my version didn't work (it sometimes had more numbers) but this one does? If in the description it's told that there should be spaces :/
What a neat solution. Love it.
I learned slice assignment from your solution. Never seen it before ...
Nice, didn't know you could just sum over generator objects like that - cheers.
cool, very clear