Ad
  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    40 is your answer, 40 + 2 is the expected one. Not a kata issue. You're returning inside the loop at its first iteration.

  • Default User Avatar

    Issue zith this one, in my local IDE it passes the tests, but fails here, because it seems the numbers in the test are rounded down.
    Example: expanded_form(42) error: 40 should be equal 40 + 2

    Any idea how this can happen?

  • Default User Avatar

    Yes, that was what I was looking for the whole time!
    Thanks a lot, this was of great help :)

  • Custom User Avatar

    Your function currently prints check instead of returning it. In a Codewars kata, you should be returning the result from your function rather than printing it. Make sure to use a return statement to output the result.

  • Custom User Avatar

    This paragraph has some information on your problem, see if it will be helpful for you.

  • Default User Avatar

    Python: When in vscode, it succesfully detects pangrams and non-pangrams,
    but when tested in here, I am stuck on the error that None value should also be True/False.
    Can somebody please help?