title: Python "if X == Y and Z" syntax
body: <p>Does this:</p>
  
  <pre><code>if key == "name" and item:
  </code></pre>
  
  <p>mean the same as this:</p>
  
  <pre><code>if key == "name" and if key == "item":
  </code></pre>
  
  <p>If so, I'm totally confused about <a href="http://diveintopython.net/object_oriented_framework/special_class_methods.html" rel="noreferrer">example 5.14 in Dive Into Python</a>. How can key be equal to both "name" and item? On the other hand, does "and item" simply ask whether or not item exists as a variable?</p>