Ad
  • Default User Avatar

    I just retried your current solution, and I will try to illustrate what I mean - you are 99.999% close to passing!

    I copied below the first result I found of some random attempts:

    your_solution = "VFR,!T / --7SOS A0N/C WG7C FD&? 90(Y &8AG Z'/RYW- $92 1N IN&K5SOS0 2'7@XMBV' JN "
    correct_solut = "VFR,!T / --7SOS A0N/C WG7C FD&? 90(Y &8AG Z'/RYW- $92 1N IN&K5SOS0 2'7@XMBV' JN"
    

    do you see the tiny small difference above in the 2 strings, where yours is currently different from the correct solution? You just need to modify your final returned string to deal with that tiny small difference.

    As I said above, from kata Description: "Extra spaces before or after the code have no meaning and should be ignored."

  • Default User Avatar

    Your solution is basically correct - you are missing the implementation of this part of the description:

    Extra spaces before or after the code have no meaning and should be ignored.

    I have tested your code in the attempt - the way I was able to troubleshoot is by noticing that your results are basically correct except ' ' spaces near end of your returned final results.

    As for "how you can solve this" yourself - in future, if you want to debug yourself, pay attention to such error messages in console - or, you can add print() statements in your code to see what it is outputting at various steps of the program. This will allow you to notice that (as in this case) you are 99% correct, just missing some small detail.