Today's Daily Python URL includes this entry
Gary P Thompson II: The Quine Page [A quine is a program that generates a copy of its own source text as its complete output. The Quine Page has an extensive collection of these, including several in Python.]
Herewith my contribution:
0
That's it. Like Terry Reedy's submission on the python quine page, this works as interactive string input. Outputs 0. Any integer will work, but zero is perhaps 'smaller' than other integers. Think this is a "cheat?". In comparison to what? Just to show that I do have standards, I'll point out that I declined to submit a null program even though it too causes the python interpreter to output itself (i.e., nothing.)
11:07:21 AM
|