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.
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
one line fantastic
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?
The kata works fine. If this code is failing, it's wrong.
hhh ,
I see that this kata requires a little work
This is not possible in python 3 anymore, since
translate
only takes one argument now (a translation table)This kind of forbidding is stupid...
always the same problem: if a kata sensei doesn't want us to use something, it's up to him/her to find a way to forbid it. If not, there will be this type of side effects (and that's just fair! ;) )
This solution does not comply with the assignment: ==> without using strings <==
"Description:
Reverse the integer without using strings or lists
reverse(123456) -> 654321
"
While that is a great pratice, it is sure not for 7 kyu kata.
I didn't start this kata yet, so I can't tell weather your solution is right or not. But there IS a differences between "expected" and "instead got":
instead got: '[96, 8, 87, 76, 71, 46, 96, 95, 52, 75, 17, 92, 76, 99, 51, 81, 45, 33, 90, 74, 17, 10, 96, 60, 10, 79...
After this sequense there should be "0", but you don't have it.
Not sure if the question is still relevant since it was published 5 months ago, but someone upvoted, so anyway.
You're right. Sorry, my bad!
Loading more items...