title: traverse backwards in a string using python string.find() function
body: <p>I have a string </p>
  
  <pre><code>mystr = "My mail id is abcd1234@account.com and xzy1234@mailinglist.com"
  index = mymail.find('@') #gives me index using which i can traverse further with the mail id
  </code></pre>
  
  <p>How to get only word before @ (i.e abcd1234 and xzy1234) and word after @ (i.e account.com and mailinglist.com) without using list and only using find.</p>
  
  <p>for ex:</p>
  
  <pre><code>index = mymail.find('@')
  res = mymail.find(' ',index)
  mystr[index+1:res] gives me --&gt; account.com
  </code></pre>