title: what happens when you compare two strings in python
body: <p>When comparing strings in python e.g. </p>
  
  <pre><code>if "Hello" == "Hello":
      #execute certain code
  </code></pre>
  
  <p>I am curious about what the code is that compares the strings. So if i were to compare these in c i would just compare each character and break when one character doesn't match. i'm wondering exactly what the process is of comparing two strings like this, i.e. when it will break and if there is any difference between this comparison and the method said above other than redundancy in lines of code</p>