title: Substring Comparison in python
body: <p>If i have List PhoneDirectory
  Eg:</p>
  
  <pre><code>['John:009878788677' , 'Jefrey:67654654645' , 'Maria:8787677766']
  </code></pre>
  
  <p>Which is the function that can be use to compare the Presence of Substring (Eg: Joh) in each entry in the List .</p>
  
  <p>I have tried using </p>
  
  <pre><code>if(PhoneDirectory.find(Joh) != -1)
  </code></pre>
  
  <p>but it doesnt work</p>
  
  <p>kindly Help..</p>