0

If you don't know what a quine is, it is a program or script that's only purpose or function is to print out its own source code.

I was wondering would this be considered a quine?

f = open("quine.py","r"); print f.read()

quine.py is the script that this code is in. It does print out itself like a quine would.

3
Contributors
4
Replies
5
Views
8 Years
Discussion Span
Last Post by Tech B
0

I don't understand what you mean by persistent quine.
The idea struck me a few nights ago before I went to sleep. If it is in fact a quine, its a pretty good one at only 37 bytes.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.