title: TypeError: unsupported operand type(s) for &: 'str' and 'int'
body: <p>I'm executing the following snippet on python 2.7:</p>
  
  <pre><code>i=0
  j=3
  a=['A','B','B','A']
  while(a[i]=="A" &amp; i&lt;j):
      #do something
  </code></pre>
  
  <p>And I am getting this error.</p>
  
  <blockquote>
    <p>TypeError: unsupported operand type(s) for &amp;: 'str' and 'int'</p>
  </blockquote>
  
  <p>Any help?</p>