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.
This soution does have flaws (dictionary lookup would be a better choice from algo perspective, see https://www.codewars.com/kata/reviews/5543923a46002d366a00016c/groups/5d08bd4aa535d50001b7dceb for example), but "not pytonic"? really? what is not pytonic in it?
It's already in the initial code. Do you think that's not enough?