Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 3
    \$\begingroup\$ This isn't a quine. See the definition. \$\endgroup\$ Commented Feb 24, 2014 at 19:13
  • 21
    \$\begingroup\$ @PetrPudlák Nor are any programs in this question. This is a quine-variant problem, not strict quining. \$\endgroup\$ Commented Feb 25, 2014 at 2:22
  • \$\begingroup\$ The lambda isn't needed if the file ends in a newline character: print(open(__file__).read()*2) \$\endgroup\$ Commented Oct 7, 2021 at 9:24
  • 2
    \$\begingroup\$ One that meets the new quine definitions is: s='s=%r;print(s%%s*2);';print(s%s) \$\endgroup\$ Commented Oct 7, 2021 at 9:35