title: How do 'and' and 'or' act with non-boolean values in Python?
body: <pre><code>22 and 333/12 or 1
  </code></pre>
  
  <p>I have encountered the above line of code. The result is 27, but I could not quite understand what does <code>and</code> and <code>or</code> mean in this case. Can somebody explain to me, preferred with examples. Thanks in advance!!</p>