Created
November 15, 2019 11:18
-
-
Save jamesseanwright/5b40d08ccf578b2062719a684437bda8 to your computer and use it in GitHub Desktop.
132-byte ROT13 implementation in Python 3
This file contains hidden or 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
| 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