Skip to content

Instantly share code, notes, and snippets.

@jbn
Created October 20, 2016 20:06
Show Gist options
  • Save jbn/91fab6d1032475ab191be74f4911c3f5 to your computer and use it in GitHub Desktop.
Save jbn/91fab6d1032475ab191be74f4911c3f5 to your computer and use it in GitHub Desktop.
def get_zen_of_python():
import codecs, sys
out = sys.stdout
with open(os.devnull, "w") as tmp_out:
sys.stdout = tmp_out
from this import s as zen_of_python
sys.stdout = out
return codecs.encode(zen_of_python, 'rot_13')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment