title: Comparing Strings
body: <p>Does there exist any inbuilt function in python than can return number of  mathching characters in two strings,for example:</p>
  
  <p>INPUT:</p>
  
  <pre><code>   TICK TOCK
     CAT DOG
     APPLE APPLES
  </code></pre>
  
  <p>OUTPUT:</p>
  
  <pre><code> 3
   0
   5
  </code></pre>
  
  <p>The words "TICK" and "TOCK" have a score of 3, since three characters (T, C, K) are the same. Similarly, "CAT" and "DOG" score 0, since no letters match.</p>
  
  <p>I am a new bie in python so please help me with examples.</p>