title: Attempting to check if a list isn't empty AND some other condition within the same if statement
body: <p>The easiest way to explain this is to show a simple example:</p>
  
  <pre><code>x = [0]
  
  f = 4
  if (x) &amp; (f &lt; 6):
      print("yes")
  </code></pre>
  
  <p>The idea is simple, check if a list contains any content and if some other variable is less than some number. </p>
  
  <p>The solution yields the following error and I'm not entirely sure what the solution is.</p>
  
  <pre><code>TypeError: unsupported operand type(s) for &amp;: 'list' and 'bool'
  </code></pre>