title: Attempted to make quine; does not output quotation marks
body: <p>Using python 2.7.</p>
  
  <p>(edit at the top in case you miss something at the bottom: I have been executing the code with exec(), which makes it part of the source. More info about my usage of this is in the bottom of this post)</p>
  
  <p>Recently, I have taken an interest in quines. So far, my attempt that is the closest to a quine is:</p>
  
  <pre><code>_="print '_={0}'.format(_)"
  </code></pre>
  
  <p>Unfortunately, that prints this</p>
  
  <pre><code>_=print '_={0}'.format(_)
  </code></pre>
  
  <p>instead of this</p>
  
  <pre><code>_="print '_={0}'.format(_)"
  </code></pre>
  
  <p>which is a major problem because executing</p>
  
  <pre><code>_=print '_={0}'.format(_)
  </code></pre>
  
  <p>will result in an error, and is not the same as the original source code.</p>
  
  <p>I have been struggling to get those quotation marks in there. One way I tried is using escapes to do this:</p>
  
  <pre><code>_="print '_=\"{0}\"'.format(_)"
  </code></pre>
  
  <p>and that prints this:</p>
  
  <pre><code>_="print '_="{0}"'.format(_)"
  </code></pre>
  
  <p>and that code will once again print</p>
  
  <pre><code>_=print '_={0}'.format(_)
  </code></pre>
  
  <p>and that is not the same and errors. Does anyone have any idea for a modification I could make?</p>
  
  <p>And, as I write this, I have realized something else.
  I have been executing the code this whole time with exec(), and this quine can only be run with exec(), which makes exec() part of the code, so that needs to be added too. So, now another attempt with exec() added:</p>
  
  <pre><code>_=print '_={0}'.format(_); exec(_)
  </code></pre>
  
  <p>but that creates a horrible loop and still lacks quotation marks</p>
  
  <pre><code>&gt;&gt;&gt;&gt; _="print '_={0}'.format(_); exec(_)"; exec(_)
  _=print '_={0}'.format(_); exec(_)
  _=print '_={0}'.format(_); exec(_)
  _=print '_={0}'.format(_); exec(_)
  _=print '_={0}'.format(_); exec(_)
  _=print '_={0}'.format(_); exec(_)
  _=print '_={0}'.format(_); exec(_)
  [etc]
  </code></pre>
  
  <p>So, now I need to get exec() in there without an ugly loop and get the quotation marks in the right spots.</p>
  
  <p>So now, this leads me to repeat myself again:
  Does anyone have any idea for a modification I could make?</p>