Ad
  • Default User Avatar

    Hi - please don't use issue tag, that is reserved for problems with the kata itself, not problems with your code/debugging.

    I just solved in Python and it works fine. If you are sure you are failing on basic test #7, then that means you are failing on this input:

    [0,2,0,0,0,0,3,4,5,0,0,0,0,0]

    It's up to you to debug, but looking at your code: I recommend you re-read the first line of the description again to see if you are missing another condition for this kata.

    More generally, here's a very useful troubleshooting tip: you can always print the test input by adding the following line in your code:

    def zero_plentiful(arr):
        print(arr) ## <--- in this kata the input is called arr, replace by other name in other katas
        #rest of your code here
    

    now you can see the test cases you fail in the console. Hope that helps.

    You can read more about this here:

    https://docs.codewars.com/training/troubleshooting/#error-messages-and-printing-your-inputoutput