title: Check if substring is in a list of strings?
body: <p>I have found some answers to this question before, but they seem to be obsolete for the current Python versions (or at least they don't work for me).</p>
  
  <p>I want to check if a substring is contained in a list of strings. I only need the boolean result.</p>
  
  <p>I found this solution:</p>
  
  <pre><code>word_to_check = 'or'
  wordlist = ['yellow','orange','red']
  
  result = any(word_to_check in word for word in worldlist)
  </code></pre>
  
  <p>From this code I would expect to get a <code>True</code> value. If the word was "der", then the output should be <code>False</code>.</p>
  
  <p>However, the result is a generator function, and I can't find a way to get the <code>True</code> value.</p>
  
  <p>Any idea?</p>