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.
It might be because your pro_list contains strings so
pro_list[counter][1] != False
will always be true because you compare a string to a boolean. I think it was supposed to be!= '0'
.You do not pass all the tests. You pass some tests, and then time out.
I've seen it in other katas. Just consider it's time out.
Hint: Your solution will give "Automorphic" for 16 - 16 is not automorphic (reread the problem description to see why)
Because there are zeros after the
False
. Check how your old code worked here: http://www.pythontutor.com/visualize.html#mode=edit with an input like this one:[1, False, 1, 0]
Because
remove
doesn't distinguish them.