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.
best
It might be easier to read when you have pages of code with many different functions.
Nice
i wanted to try something like this but couldn't. Thanks for the help
You should not mix the types... Even in the function definition you've "str" which is a string as the first parameter.
Fairly simple and more recent way of solving the problem!
one line fantastic
This comment is hidden because it contains spoiler information about the solution
This is a thing?
do you really find this easier to read? serious question btw
sometimes one liners are easier to read and way easier to code
its one of the nice features of python
Why would you do all this on a single line?
Should we rename Codewars to 1LineWar?
This comment is hidden because it contains spoiler information about the solution
What ?!?
Another one doing possibly
4e9
operations for something you can calculate in one step? And you also got an upvote?This comment is hidden because it contains spoiler information about the solution
You could also use (+b/5)|0 insted of ~~(+b/5) for Math.floor.
Loading more items...