Ad
  • Custom User Avatar

    If you want people to help troubleshoot, you should post code with proper formatting.

    See the guide here Markdown for Codewars.

    ```python

    k = 1

    c = []

    ```

    becomes:

    def order(sentence):
      k = 1
      c = []
      etc.
    

    Looking at your solution quickly, it seems that you aren't returning anything you are just using print(c) - try with return(c) instead to see if that works.

  • Custom User Avatar

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