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.
The translate method applies the translation table to the input string dna, replacing each character according to the mapping.
I'm pretty sure this code was written in Python 2, that's probably why.
use spoiler flag when showing code (I have added the flag)