title: How does find procedure work in python
body: <p>I wish to create a 'find' procedure <strong>myself</strong>, which is capable of finding a sub-string in a string and it also should be able to read a string backward and give position of match- just like the original find function in python. </p>
  
  <p>I am unable to figure out what logic should I use- also I don't know how the original find functions?</p>
  
  <p>I just started to use python and am fairly new to programming as well.</p>
  
  <p>Any guidance shall be highly appreciated!</p>