title: Python TypeError: '<' not supported between instances of 'int' and 'list'
body: <p>I want to compare a value to a list and if all of the values are True, return True.  If any values are False, return False. 
  For example:</p>
  
  <pre><code>all(3 &lt; [3,4,5])
  </code></pre>
  
  <p>Should return False. </p>
  
  <pre><code>all(3 &lt; [4,5])
  </code></pre>
  
  <p>Should return True.  However, I get this error:</p>
  
  <pre><code>TypeError: '&lt;' not supported between instances of 'int' and 'list'
  </code></pre>
  
  <p>This runs:</p>
  
  <pre><code>3 &lt; all([4,5])
  </code></pre>
  
  <p>but doesn't produce the right answer because 3 is greater than [True, True].  I apologize if this is a duplicate, but of the 6 examples I found of this error on SO, none of them answer my question.  The weird thing is I feel like I have successfully used this in the past without issues.  I am running Python 3.7.3 on a Macbook. </p>