title: What is the difference between ' ' and " " in python?
body: <blockquote>
    <p><strong>Possible Duplicates:</strong><br>
    <a href="https://stackoverflow.com/questions/143714/is-there-any-difference-between-string-and-string-in-python">Is there any difference between &ldquo;string&rdquo; and &#39;string&#39; in Python?</a><br>
    <a href="https://stackoverflow.com/questions/56011/single-quotes-vs-double-quotes-in-python">Single quotes vs. double quotes in Python</a>  </p>
  </blockquote>
  
  
  
  <p>I have noted that I can use both single and double quotes to delimit strings in python, and that whichever one I <em>don't</em> use to delimit the string, I can use freely inside it without any need to escape it.</p>
  
  <p>Examples:</p>
  
  <pre><code>ex1 = 'this works'
  ex2 = "this works too"
  ex3 = "it's much easier to write it's this way"
  ex4 = 'but this way, it\'s possible to print out "quotes from other people"'
  </code></pre>
  
  <p>In other languages, however, I've seen cases both where it doesn't matter (in JavaScript, both <code>'hi'=="hi"</code> and <code>'hi'==="hi"</code> return <code>true</code>) and where it does (in C#, <code>"d"</code> is a <code>string</code> while <code>'d'</code> is a <code>char</code>)</p>
  
  <p>Now, I'm wondering if there's really a difference "under the hood". Does python care which of <code>'</code> and <code>"</code> I use? If so, in what way?</p>