Ad
  • Default User Avatar

    I also write the same code with different names, but everytime I get unexpected EOF while parsing error. But the code is working on PyCharm. How can I pass correct this error?

  • Default User Avatar

    Sorry about the confusion on issue vs question!
    Thank you very much both of you for your help, I will check it again!

  • Custom User Avatar

    There are lots of error in else condition.

  • Default User Avatar

    ISSUE's are for reporting the kata itself as wrong. Since this is about your code, it should be a QUESTION.

    I suggest reading the error message that you are getting, since it says where this happens and it says what things are involved, all the information you need is in that error message.

    Converting to string using str and concatenating with + is often very unwieldy, after figuring out the bug you might want to check out f string literals or str.format.

  • Default User Avatar

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