Created
March 27, 2016 22:04
-
-
Save LandonPowell/53bce189cbe96fd97d14 to your computer and use it in GitHub Desktop.
Code Golph'd implementation of rot13 in Python2.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a = "abcdefghijklmnopqrstuvwxyz" | |
q = " 1234567890.,'\";:" | |
z = {x:y for x,y in map(None,a+q,a[13:]+a[:13]+q)} | |
print ''.join([z[c] for c in raw_input('>').lower()]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment