Created
July 11, 2020 16:12
-
-
Save RagingTiger/e67e0069eb66b551007f362354e89394 to your computer and use it in GitHub Desktop.
Lex Fridman - Quine Example
This file contains 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
# Ref: https://youtu.be/a-zEbokJAgY | |
# quine | |
s='s=%r;print(s%%s)';print(s%s) | |
# interactive intron | |
t='';s='t=input()or t;print(f"t={repr(t)};s={repr(s)};exec(s)#{t}")';exec(s)# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment