Skip to content

Instantly share code, notes, and snippets.

@nozma
Last active August 17, 2017 13:13
Show Gist options
  • Save nozma/e63f7aad241067806f08d84d5fe386e6 to your computer and use it in GitHub Desktop.
Save nozma/e63f7aad241067806f08d84d5fe386e6 to your computer and use it in GitHub Desktop.
# 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