Earn extra honor and gain new allies!
Honor is earned for each new codewarrior who joins.
Learn more
  • Because if you see the tests, what's checked is the returned value of your function. If you only print the value, your function will return the default value of None.

  • Thank you for the advice, I was printing instead of returning. That also solves past Kata problems I had.
    I am curious as to why return is correct and print would be incorrect?

  • Python Completions 5194

    There is no problem with Python, your code must be wrong, are you printing or returning the result?

  • My solution is correct, but codewars is saying I am wrong

  • It's stating my code is wrong. I don't understand why. I tested my code and it works just fine. I did both of the functions in python.