title: How can I find the first occurrence of a sub-string in a python string?
body: <p>Given the string &quot;the dude is a cool dude&quot;,<br />
  I'd like to find the first index of 'dude':</p>
  <pre><code>mystring.findfirstindex('dude') # should return 4
  </code></pre>
  <p>What is the python command for this?</p>