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 core part of this solution is creating the translation table. I am creating a one-to-one mapping between a character and its rotated character in the line
string.maketrans(first, trance)
. So, after this A is mapped to N, B to O, etc.After this, I am just translating the
message
based on above created translation table.