title: What is the difference between "is" and "==" in python?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1504717/python-vs-is-comparing-strings-is-fails-sometimes-why">Python &lsquo;==&rsquo; vs &lsquo;is&rsquo; comparing strings, &lsquo;is&rsquo; fails sometimes, why?</a>  </p>
  </blockquote>
  
  <p>Is</p>
  
  <pre><code>a == b
  </code></pre>
  
  <p>the same as</p>
  
  <pre><code>a is b
  </code></pre>
  
  <p>?</p>
  
  <p>If not, what is the difference?</p>
  
  <p>Edit:
  Why does</p>
  
  <pre><code>a = 1
  a is 1
  </code></pre>
  
  <p>return True, but</p>
  
  <pre><code>a = 100.5
  a is 100.5
  </code></pre>
  
  <p>return False?</p>