Jon Schull's Weblog





Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.


Wednesday, September 10, 2003
 

Smallest python quine?


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.)

 


comments? [] 11:07:21 AM    


Click here to visit the Radio UserLand website. © Copyright 2004 Jon Schull.
Last update: 1/21/04; 9:29:05 AM.
September 2003
Sun Mon Tue Wed Thu Fri Sat
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30        
Aug   Oct