Zip-file that contains nothing but itself?
You can read about it here: http://research.swtch.com/2010/03/zip-files-all-way-down.html Here you will find r.zip, which contains itself.
You can read about it here: http://research.swtch.com/2010/03/zip-files-all-way-down.html Here you will find r.zip, which contains itself.
Aside from cheating¹ there is no difference between compiled and interpreted languages. The generic approach to quines is quite easy. First, whatever the program looks like, at some point it has to print something: print … However, what should it print? Itself. So it needs to print the “print” command: print “print …” What should … Read more
Any programming language which is Turing complete, and which is able to output any string (by a computable function of the string as program — this is a technical condition that is satisfied in every programming language in existence) has a quine program (and, in fact, infinitely many quine programs, and many similar curiosities) as … Read more
I’m just going to leave this here (save as exceptionQuine.py): File “exceptionQuine.py”, line 1 File “exceptionQuine.py”, line 1 ^ IndentationError: unexpected indent