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's generally considered as bad practice to mutate the input.
The tests are OK but you should not modify the input list
ls
; work on a copy of ls. Moreover there might be some other problems in your code.There is nothing messed up in the tests: look at the top of the page to see how many people passed the Python kata.
Print the list and you will see it is not empty.