Let’s talk about self printing programs (or, quines). A self printing program is, as is its name, self explanatory. Today I thought about how to implement a quine in Python, I whipped up a solution on my own and then posed the challenge to some people in the office. These are the results:
I know this post is ancient, but I have taken an interest in quines and have written my own. _="print '_='+chr(34)+'{0}'.format(_)+chr(34)+'; exec(_)'"; exec(_)