Ad
  • Default User Avatar

    Thanks. All OK now.

  • Custom User Avatar

    Select it in the trainer, it works fine.

  • Default User Avatar

    Hi @evgeniyakarna and welcome to Codewars!

    I tested your solution and noticed that the errors seem to occur when letter 'Z' is in original string.

    Because your code takes 'Z' and turns it to 'a', this is the error I think - remember, "Makes any vowels capital" so it should take 'Z' to 'A'.

    For a useful general piece of advice for your Codewars journey, on this Troubleshooting page it recommends to "Print the input" when you have some problems with your code. In Python this means:

    def changer(s):
        print(s) # <--- ADD THIS LINE
        # rest of your code as usual...
        next_let_word = str()
        ...
    

    Now, in Codewars console you can see which input (here, s) causes your code to fail - that's how I was able to debug your solution. This is useful technique that will help in 99% of katas if you need to debug.

  • Custom User Avatar

    Can someone help - I test some cases in PyCharm and it's working but here it's not. Like
    'o9Ztdd51Hrgm0wxYoBBZtLhlnr7j' should be equal to 'p9AUEE51Ishn0xyzpccAUmImOs7k'. But here is a fail with one letter in lower space. I don't get it)