title: Create set of rules with one flag variable
body: <p>I have a code which goes like this:</p>
  
  <pre><code>flag = 0
  if A == 'string1':
      flag = 1
  if B == 'string2':
      flag = 1
  if C == 'string3':
      flag = 1
  </code></pre>
  
  <p>Is there a way to create a list of the rules I want to check, check whether at least one is true, and set <code>flag</code> to 1?  For example,</p>
  
  <pre><code>D = [A == 'string1', B == 'string2', C=='string3']
  if D:
      flag = 1
  </code></pre>