Ad
  • Custom User Avatar

    If you're only printing, you're passing exactly 0 tests, I don't understand how you can reason otherwise.

    You can still print, but you HAVE TO return the result for tests to receive your answer.

    If your every output matched the desired output, you'd be passing the tests. Clearly that's not the case. Are you using any global variables? That could produce unexpected results.

    What errors are you getting? Which assertions are you failing? Could you provide an example of what you see?

    The platform is fine, you just need to learn how to use it.

    Be descriptive with the problems you encounter, not using some vague "doesn't work" nonsense and downvoting people trying to help you. We can't see your code or what you see on your screen, so...

    For general troubleshooting, this article is a good starting point to answer some of your questions: https://github.com/codewars/codewars.com/wiki/Troubleshooting-your-solution

  • Custom User Avatar

    Because you're printing the result, not returning (what you should do)

  • Custom User Avatar

    Do not use input(). Do not use print(), use return. Do not call your function yourself, that's what the tests will do.