Ad
  • Custom User Avatar

    It can only remove both sides '0'.

  • Custom User Avatar

    not a kata suggestion

  • Custom User Avatar

    Python Completions 6415

    Because there is no problem with the kata (issue), the problem is in your code or you didn't get what you should do (question). When you think there is a problem with the kata, first check how many completions there already are in that language, if there are many, then suspect your code is the culprit. When you're sure there is a problem with the kata, provide the input, the value your code returns and the expected value, or in some cases your code marking your post as having spoiler content and using markdown formatting (specially in Python where indentation matters)

    I already told you, East, East, etc. is not the input, that's what your function returned. Also note, directions are all capitalized like EAST, WEST, etc. So the value you showed was generated by your code.

  • Custom User Avatar

    The first value in A should equal B is the value your function returns and the other is the expected value, if you want to know what was the input value, print it before doing anything else. Also, don't mutate the input, it could lead to wrong expected values in some tests.

  • Custom User Avatar

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