title: Python: One line for loop condition
body: <p>In the example below, I am testing whether any characters in the variable 'characters' are found in the string 'hello'.</p>
  
  <pre><code>characters = ['a','b','c','d']
  
  if True in [c in 'hello' for c in characters]: print('true')
  else: print('false')
  </code></pre>
  
  <p>The one line for loop creates a list of boolean values. I'm wondering if there's any way to not create the list and rather pass the whole condition once one of the conditions in the loop has passed.</p>