Skip to content

Instantly share code, notes, and snippets.

@LandonPowell
Created March 27, 2016 22:04
Show Gist options
  • Save LandonPowell/53bce189cbe96fd97d14 to your computer and use it in GitHub Desktop.
Save LandonPowell/53bce189cbe96fd97d14 to your computer and use it in GitHub Desktop.
Code Golph'd implementation of rot13 in Python2.
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