title: Check if elements of list with words and phrases exist in another list
body: <p>I have a list of words and phrases:</p>
  
  <pre><code>words = ['hi', 'going on', 'go']
  </code></pre>
  
  <p>And I have a transcript:</p>
  
  <pre><code>transcript ="hi how are you. I am good. what's going on.".split('.')
  </code></pre>
  
  <p>I need to find matches in this transcript. For the example above, matches are in the first and third elements of the transcript. </p>
  
  <p>I followed answers from <a href="https://stackoverflow.com/questions/3389574/check-if-multiple-strings-exist-in-another-string">here</a> and I tried to use the following code:</p>
  
  <pre><code>for i in range(len(transcript)):
      if any(word in transcript[i] for word in words):
          print(i)
  </code></pre>
  
  <p>Its output is:</p>
  
  <pre><code>1
  2
  3
  </code></pre>
  
  <p>But it is not what I want. I want to exclude 'i am good' sentences from the output. The expected output is:</p>
  
  <pre><code>1
  3
  </code></pre>