Ad
  • Default User Avatar

    ... File "/home/codewarrior/solution.py"

    -> that means the error is raised in YOUR code

    ... answer = [iterable[0]]
    IndexError: string index out of range

    And that tells you what part of your code is wrong.

    Several things you should keep in mind:

    • sample tests are what they are: "sample". Meaning they are only a small part of the actual test suite.
    • print is your friend
    • don't post an issue unless you can demonstrate that the error s in the kata itself. Issues are for that purpose only. So when you don't know what's happenning, post a question instead.

    Cheers

  • Default User Avatar

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