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 could be useful if we were getting a "string" and converting to Int. But I don't know a data type that can't be converted to string format)
You described what the try except block does which is correct. However, it does not answer @shbhmnk's question of the case when a number cannot be turned into a string.
definitely a different solution
This is beuty code, but not clever. It iterates 4 times each String instead of 1.
the tests it gave you must be either a string or a num, I think you may be too careful
you just did bro!
I realy love such solutions, thank you!
Neat. I never knew that Python allows one line for
conditional: resulting statement
How long it took you to learn these codes ?
This comment is hidden because it contains spoiler information about the solution
Cool!
but you gotta admit, it's really cool
Codewars really needs experts to rank solutions.
how does it fell like being an alien?
Why is the try statement neccessary here? Do you have any particular case in mind?
Loading more items...