Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
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:
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