mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-12-18 01:00:15 +00:00
c96241b5a5
* Replace bandit, flake8, isort, and pyupgrade with ruff * Comment on ruff rules * updating DIRECTORY.md --------- Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
12 lines
349 B
Python
12 lines
349 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))"))
|