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.
I'm just wondering: shouldn't the definition of pairs be inside a function, so less global variables?
*believe
sorry, had to. Also maybe a good solution is not about using as less code as possible which sometimes seems just unnecessary elitist. If every not so knowledgable person has a hard time reading your code it might make it extremely hard to get people to work with you at the same code.
Best solution is always if somebody else can easily read it. The only reason that would not be the case is when it slows down the code noticeable, but then you would probably not use python anyways...