Ad
  • Custom User Avatar

    I had the same problem. The problem is with the range(1,10) bit.
    If you replace that with list(range(1,10)) or [1,2,3,4,5,6,7,8,9] it should work!

  • Custom User Avatar

    Hi! one_two function already defined in a global scope.
    You won't need to receive any arguments. You can just call one_two from one_two_three

  • Default User Avatar

    I don't think that you need one_two function. The instructions are a bit misleading.

    As you can see the initial code only requires the one_two_three function without passing any argument.

    3rd row of test cases: "count = Counter(one_two_three() for _ in range(length))"

  • Custom User Avatar

    I've checked your solution. Add print term after term = word.split('ltr').

    When you don't know what's happening, you just print everything.

  • Custom User Avatar

    Have you taken into account that CodeWars console is HTML and the output could look different because of this?
    I suggest using hexlified output or <pre> tags in prints to make sure that what you see in the print is exactly what you printed.