title: How to apply logical operator OR in some of the list item?
body: <p>I want to know is it possible to include logical operator OR in the list item. For example:</p>
  
  <pre><code>CHARS = ['X','Y','Z']
  </code></pre>
  
  <p>change this line of code to something like: (I know this is not a correct way)</p>
  
  <p>Can anyone help me?</p>
  
  <pre><code>CHARS = ['X','Y','Z','X OR Y','Y OR Z','X OR Z']
  </code></pre>
  
  <p>Example code:</p>
  
  <pre><code>import numpy as np
  
  seqs = ["XYZXYZ","YZYZYZ"]
  
  CHARS = ['X','Y','Z']
  CHARS_COUNT = len(CHARS)
  
  maxlen = max(map(len, seqs))
  res = np.zeros((len(seqs), CHARS_COUNT * maxlen), dtype=np.uint8)
  
  for si, seq in enumerate(seqs):
      seqlen = len(seq)
      arr = np.chararray((seqlen,), buffer=seq)
      for ii, char in enumerate(CHARS):
          res[si][ii*seqlen:(ii+1)*seqlen][arr == char] = 1
  
  print res
  </code></pre>
  
  <p>It scan through to detect X first if it is occurred then will be awarded 1 then detect Y and last Z. </p>
  
  <p>Output:</p>
  
  <pre><code>[[1 0 0 1 0 0 0 1 0 0 1 0 0 0 1 0 0 1]
   [0 0 0 0 0 0 1 0 1 0 1 0 0 1 0 1 0 1]]
  </code></pre>
  
  <p>Expected output after include logical OR:</p>
  
  <pre><code>[[1 0 0 1 0 0 0 1 0 0 1 0 0 0 1 0 0 1 1 1 0 1 1 0 0 1 1 0 1 1 1 0 1 1 0 1]
   [0 0 0 0 0 0 1 0 1 0 1 0 0 1 0 1 0 1 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 1 0 1]]
  </code></pre>