Ad
  • Default User Avatar

    Hi @stas0601019 and welcome to Codewars!

    This error message means "You returned True, the correct answer is False"

    I copied your solution and added a print statement: print(text, ending) to see which inputs are failing. This is a very useful tool for debugging your solution on Codewars on most katas.

    It turns out your code fails on input text "samurai" and ending "ra". Your code returns True (because "ra" is in "samurai") but as you can see the word "samurai" does not end in "ra" so the correct answer should be False.