mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-12-05 02:40:16 +00:00
bc8df6de31
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.2.2 → v0.3.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.2.2...v0.3.2) - [github.com/pre-commit/mirrors-mypy: v1.8.0 → v1.9.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.8.0...v1.9.0) * [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>
13 lines
350 B
Python
13 lines
350 B
Python
#!/bin/python3
|
|
# ruff: noqa
|
|
"""
|
|
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))"))
|