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.
But there's no reason for a bool to ever be in the list, at least I don't think there are any in the test cases?
If you don't add isinstance(i,bool) it will ignore False(type bool) list and you will get an extra zero at the end. For example give [False,1,2,0,3,0,3] as an input and see the output .
Try to remove it and see.