Skip to content

Instantly share code, notes, and snippets.

@ahmed4end
Created January 16, 2020 06:03
Show Gist options
  • Save ahmed4end/c55aaf61d62969c0c60c45a606ab67c2 to your computer and use it in GitHub Desktop.
Save ahmed4end/c55aaf61d62969c0c60c45a606ab67c2 to your computer and use it in GitHub Desktop.
one line python code to encode text in (Caesar cipher).
print("".join([(lambda i:[chr(i) for i in range(97,123)][(ord(i)%97+3)%26] if i != " " else " ")(i) for i in "i love being alone"]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment