Created
October 20, 2016 20:06
-
-
Save jbn/91fab6d1032475ab191be74f4911c3f5 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
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