title: How does the logical `and` operator work with integers?
body: <p>So, I was playing with the interpreter, and typed in the following:</p>
  
  <pre><code>In [95]: 1 and 2
  Out[95]: 2
  
  In [96]: 1 and 5
  Out[96]: 5
  
  In [97]: 234324 and 2
  Out[97]: 2
  
  In [98]: 234324 and 22343243242
  Out[98]: 22343243242L
  
  In [99]: 1 or 2 and 9
  Out[99]: 1
  </code></pre>
  
  <p>Initially I thought that it has to do with False and True values, because:</p>
  
  <pre><code>In [101]: True + True
  Out[101]: 2
  
  In [102]: True * 5
  Out[102]: 5
  </code></pre>
  
  <p>But that doesn't seem related, because False is always 0, and it seems from the trials above that it isn't the biggest value that is being outputted.</p>
  
  <p>I can't see the pattern here honestly, and couldn't find anything in the documentation (honestly, I didn't really know how to effectively look for it). </p>
  
  <p>So, how does </p>
  
  <pre><code>int(x) [logical operation] int(y)
  </code></pre>
  
  <p>work in Python? </p>