title: Why "cat" is not equal to "dog" in Python
body: <p>How does python compare strings via the inequality operators?</p>
  
  <pre><code>a = "cat"
  b = "dog"
  
  a &lt; b
  True
  </code></pre>
  
  <p>What properties of the strings results in <code>a &lt; b == True</code>?</p>
  
  <p>I've tried few other examples but still have no idea how Python compares them. Does Python compares strings like integers?</p>