Skip to content

Instantly share code, notes, and snippets.

Created March 8, 2014 04:51
Show Gist options
  • Save anonymous/9425529 to your computer and use it in GitHub Desktop.
Save anonymous/9425529 to your computer and use it in GitHub Desktop.
def caesar(message, n):
return "".join(chr(((ord(i.upper()) - 65 + n) % 26) + 65) if i.upper() >= "A" and i.upper() <= "Z" else i for i in message)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment