Skip to content

Instantly share code, notes, and snippets.

@jamesseanwright
Created November 15, 2019 11:18
Show Gist options
  • Select an option

  • Save jamesseanwright/5b40d08ccf578b2062719a684437bda8 to your computer and use it in GitHub Desktop.

Select an option

Save jamesseanwright/5b40d08ccf578b2062719a684437bda8 to your computer and use it in GitHub Desktop.
132-byte ROT13 implementation in Python 3
def rot13(s):return"".join(map(lambda c:chr(c+(0,13*(1,-1)[c>(77,109)[c>96]])[(c>96and c<123)or(c>64and c<91)]),[ord(c)for c in s]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment