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.
I like this solution, clever and elegant without pop or del.
Maybe I'm wrong or it's just beause I did it in Python, but this doesn't seem like a 6 kyu. Perhaps I noticed the pattern/math too quickly but it feels more like an 8 kyu (maybe 7). But refactoring it was run regardless.
This comment is hidden because it contains spoiler information about the solution
Very hard to read, but impressively condensed. If the goal was less than 400 characters, you have this Kata beat! Lol
Thanks.
I don't think there's enough information to answer your question. Things should work in any version of Python for this code, so maybe a syntax issue, and the Codewars interpretter only gives you I believe one option. So, what is the error code you get?
It's a way in Python to reverse a value, so basically it's doing a boolean evaluation (True/False) against whether the string values are the same forward and backwards, a.k.a a "Palindrome".
This was actually a really fun Kata to make a refined solution that is seems no one else came across. Neither prices or remainders/modulus are needed. I challenge anyone to refine it further! Best!
Might be bad form, but this was a fun solution to make and figure out. Best!
This comment is hidden because it contains spoiler information about the solution
Clever but doesn't work anymore because of the eval.
Doesn't work anymore, but very clever, Lol.
Thanks regardless and now I have some reading to do, lol.
I have seen a lot of python and I have never seen this, an array assigned and used in a single line.. that would generally give you an error. Playing with it, for an unrelated example "a, b = (a := 2*5), a+10" is tremendously cool. Thank you very much sir!
This comment is hidden because it contains spoiler information about the solution
Loading more items...