title: How to find word next to a word in Python
body: <p>I would like to find an occurrence of a word in Python and print the word after this word. The words are space separated.</p>
  
  <p>example :</p>
  
  <p>if there is an occurrence of the word "sample" "thisword" in a file . I want to get thisword. I want a regex as the thisword keeps on changing .</p>