Ad
  • Default User Avatar

    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.