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.
n=0 is the very problem
Thank's a lot :)
It's hard to say, but looking at your code I'm guessing you are failing at the test case where
n=0
which will lead to yourtmp
list being empty regardless of how you change indices.In general, to troubleshoot you should first try printing the test inputs - in Python just add:
where here
n
is the name of the input, to your code so that you can see in the console which inputs are causing you to fail.This comment is hidden because it contains spoiler information about the solution