Skip to content

Instantly share code, notes, and snippets.

@CraigTheKiwi
Created July 5, 2021 08:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CraigTheKiwi/bd6025242faf246fe3171a84e7187b17 to your computer and use it in GitHub Desktop.
Save CraigTheKiwi/bd6025242faf246fe3171a84e7187b17 to your computer and use it in GitHub Desktop.
def translateShift2(text):
crypt = "`1234567890-=qwertyuiop[]\\asdfghjkl;'zxcvbnm,./~!@#$%^&*()_+QWERTYUIOP{}|ASDFGHJKL:\"ZXCVBNM<>?"
print("".join(list(map(lambda a : " " if a==" " else crypt[crypt.index(a)-1], text))))
translateShift2(";p; epe")
translateShift2("vtsmnrttu")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment