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 not best practice to use lst.pop(idx) where idx comes from another related(mapping) list,
it may break the relationship.
Although it is OK here..
Beautiful? Good luck with maintenance of this.
Well observed. That's my bad - I've forked a modified and updated solution to the original solution which now fits all possible cases.
You can output the given input to the console. All you have to do is print the parameter and therefore you can see where you went wrong.