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.
Some info in this wall of text
Basically, when your code times out, most of the info about what has been done is lost, that's why you get "0 passed". That doesn't mean you actually passed no test.
To get a feedback anyway, you can print to the console and enforce the flush of the standard output:
print(..., flush=True)
.About your current problem, I guess that your correction introduced another bug where your code goes into an infinite loop.
You could force something to be shown in console (even when it times out). Use
print(something, flush=True)