Ad
  • Default User Avatar

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

  • Default User Avatar

    Hi, please know you should not post code without a spoiler tag (I have added the tag) otherwise everyone can see your code. If you do post code, use proper markdown to clarify indentation. Here is a tip: never use string in Python as a variable because it overwrites the Python string module. Also don't use str for the same kind of reason.

    Your code is returning a str type, whereas the kata requires that you return an int type.