That idea crossed my mind, I'm not sure about the implementation tho.
Should all codewars beginners have like a tutorial, through what to do and everything and common mistakes to avoid hence return not print. It will save a lot of human hours
Read this please. Your function should return the result.
This comment is hidden because it contains spoiler information about the solution
The test is ok, read the instructions again. The kata is not about reversing the chars, it's about reordering the digits to get the max posible number.
the expectation value in the 3rd test 1021 seems to be wrong or at least not matching with what the headline says. my program does get it correct and passes all other tests except this one.
Choose 1. You shouldn't be printing anything, just returning.
Ha, I only typed 'return', not 'return num'. Silly me. Learned something. Thanks!
Yes, but that is because your function should return the result, instead of printing it.
Thanks for your answer. When you say that the function is called in the Sample tests part, does that mean that I only have to enter the def... part and nothing around it? If I do that with the above code, I only get "None" results, so it seems like the test numbers don't reach the right spot.
Your function is called in the Sample tests part, read this too.