title: Multiple conditions in While Loop in Python
body: <p>Total noob question, but I'm trying to modify someone else's code. </p>
  
  <p>The current line is:</p>
  
  <pre><code>while 'Normal Stage' not in text[i]:
  </code></pre>
  
  <p>And I need it to be something like:</p>
  
  <pre><code>while ('Normal Stage', 'Stage Error') not in text[i]:
  </code></pre>
  
  <p>Basically checking for two different words.<br>
  This is currently in Python 2.7</p>
  
  <p>Things I've tried that have generated different errors:</p>
  
  <pre><code>while 'Normal Stage' not in text[i] or 'Error Stage' not in text[i]:
  
  while text[i] not in ('Normal Stage', 'Error Stage'): 
  
  while ('Normal Stage', 'Error Stage') not in text[i]:
  </code></pre>
  
  <p>Any help is appreciated!</p>
  
  <p>Full Loop Code:</p>
  
  <pre><code>i = 0
  f = False
  while ('Normal Error', 'Stage Error').isdisjoint(text[i]):
      if 'Findings' in text[i]:
          d['Findings'] = (text[i].split(':'))[1].strip()
          f = True
      elif f == True:
          d['Findings'] += "\n" + text[i].strip()
      i += 1
  </code></pre>