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.
Clever as hell; arguably not best practices, though, since most devs don't know too much Regex and wouldn't be able to debug this.
wrong: you just need to align the 2 strings to see what char is matching what other char.
EDIT: see the second fork
You can't mutate strings in python though ;-)
This comment is hidden because it contains spoiler information about the solution
I do agree that this is an awesome and clever solution which perfectly utilizes the translate function. However, it is interesting to consider that there's limited room to scale this solution. With a large translation table, it becomes difficult to track which value needs to be translated to which other value. When you pair them off, as in many of the other solutions, it's easy to find the areas which need to be changed.