Am I a joke for you?
That's exactly why we should translate the easy kata's to as much languages as possible :)
I can relate strongly. Codewars is great for learning new languages. And the trivial katas are perfekt to take a sneek peek into a random language. Solved at least one on with my phone. No keyboard or IDE needed. Installing a full IDE with testframework and all often takes a lot longer than doing a easy kata.
I'm not a beginner programmer, but I am learning Python, so seeing the different solutions to simple kata like this is actually quite helpful. I also love creative and humorous solutions, so nice job!!
I like that you figured out how to convert an integral to a list of digits without using the show library!
This is what I did. More about the lambda function: https://stackoverflow.com/questions/8934477/making-letters-uppercase-using-re-sub-in-python
Id of planets starts from 1 but index in listo of plantes starts from 0 so the planet with id equal 1 is in list on position 0.
what does [id-1] do btw total beginner here
Maybe it is joke. But then again 8 kyu is like bronze league, there is no limit to how easy games can be. And that is legit.
This is cute notation-wise, but certainly not "best practices", given that the more idiomatic knot-tying version uses O(1) memory, and this uses O(n).
This comment is hidden because it contains spoiler information about the solution
I still don't quite understand how this works? Could someone kindly explain it? In the meantime I'm looking up about regex and group() and sub()
Walking every group entirely ( length ) when all you're interested in is the second : constructor is not a Best Practice.
This "rounded up" business is unnecessary and just plain annoying. It's not a real problem to solve but just a hoop to jump through.