-
-
Save DiogenesAnalytics/158d2c951b1bab4d2a933d61a4d349eb 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