title: Find the index of the end of a word in python
body: <p>Is there a nice(er) way to find the end index of a word in a string?</p>
  
  <p>My method is like that:</p>
  
  <pre><code>text = "fed up of seeing perfect fashion photographs"
  word = "fashion"
  wordEndIndex = text.index(word) + len(word) - 1
  </code></pre>