quine.py
· 326 B · Python
Bruto
# Quine - Program That Reproduces Itself
# A quine is a clever bit of code that outputs its own source code.
# It’s like looking in the mirror and seeing… well, your code staring right back at you.
s = 's = {!r}; print(s.format(s))'; print(s.format(s))
#output => s = 's = {!r}; print(s.format(s))'; print(s.format(s))
1 | # Quine - Program That Reproduces Itself |
2 | # A quine is a clever bit of code that outputs its own source code. |
3 | # It’s like looking in the mirror and seeing… well, your code staring right back at you. |
4 | |
5 | |
6 | s = 's = {!r}; print(s.format(s))'; print(s.format(s)) |
7 | |
8 | #output => s = 's = {!r}; print(s.format(s))'; print(s.format(s)) |