title: Python String Literals and Escape Sequence
body: <p>I have a string </p>
  
  <p><strong>'"No, thanks, Mom," I said, "I don't know how long it will take."'</strong></p>
  
  <p>I assign it to a variable foobar</p>
  
  <pre><code>&gt;&gt;&gt; foobar = """'"No, thanks, Mom," I said, "I don't know how long it will take."'"""
  </code></pre>
  
  <p>But when I print I get</p>
  
  <pre><code>&gt;&gt;&gt; foobar
  '\'"No, thanks, Mom," I said, "I don\'t know how long it will take."\''
  &gt;&gt;&gt;
  </code></pre>
  
  <p>How can I exactly print the same value of the string as I have assigned it?</p>