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 comment is hidden because it contains spoiler information about the solution
Can't believe One-lining this one was possible
sorry.
Use spoiler flag next time please. Your post was visible in the homepage.
This comment is hidden because it contains spoiler information about the solution
If the original message contains several spaces in a line, this code will remove them. Thus, the code does not replace each initial letter of the word with a capital one, but also changes the length of the line, which is not part of the task
This comment is hidden because it contains spoiler information about the solution
I was sure they was a way to do that in one line !
But i didn't know that syntax. How can you use a for in a function like that ?
why is it bad? it only split once
Split in each loop, bad practice.
That's the way
My bad, and I know it's not easy to defer cheating. I think I managed to solve the worst of that via regex validation, but of course there's still ways - like
__import__
withgetattr
and split string literals. Those are not easy to solve, and my miserable regex skills are probably not enough.Thanks for the feedback, though!
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution