Adding a Quine in Python. (#6807)

* Adding a Quine in Python.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Jeremias Moreira Gomes 2022-10-30 08:09:23 -03:00 committed by GitHub
parent cafbbab125
commit ab9d8f3874
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

10
other/quine.py Normal file
View File

@ -0,0 +1,10 @@
#!/bin/python3
"""
Quine:
A quine is a computer program which takes no input and produces a copy of its
own source code as its only output (disregarding this docstring and the shebang).
More info on: https://en.wikipedia.org/wiki/Quine_(computing)
"""
print((lambda quine: quine % quine)("print((lambda quine: quine %% quine)(%r))"))