title: Using a Boolean in an If-Statement in Python
body: <p>I have some code with an if-statement in it, and one of the conditions is a boolean. However, CodeSkulptor says "Line 36: TypeError: unsupported operand type(s) for BitAnd: 'bool' and 'number'". Please help if you can. This is what that piece of code looks like. (I just changed all the variable names and what the if-statement executes)</p>
  
  <pre><code>thing1 = True
  thing2 = 3
  
  if thing2 == 3 &amp; thing1:
     print "hi"
  </code></pre>