Last active
August 17, 2017 13:13
-
-
Save nozma/e63f7aad241067806f08d84d5fe386e6 to your computer and use it in GitHub Desktop.
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
# coding: utf-8 | |
def cipher(S): | |
return ''.join(chr(219 - ord(c)) if c.islower() else c for c in S) | |
S = "abcDe" | |
print(cipher(S)) | |
print(cipher(cipher(S))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment