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.

Recommended Answers

All 4 Replies

A persistant quine perhaps ?

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.

Awww.... I thought I had one... Oh well lol.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.