title: How "and" And "or" Operators work with 0 and 1 and numbers like 2,3,4etc
body: <p>I am using python 3.6.1 .</p>
  
  <h2>Question 1:</h2>
  
  <h3>A)</h3>
  
  <pre><code>False and 0 # gives False, but   
  
  0 and False # gives 0 (both answers must be False)
  </code></pre>
  
  <p>like that</p>
  
  <pre><code>False or 0 # gives 0, but
  
  0 or False # gives False (both answers must be False)
  </code></pre>
  
  <p>Why is it not giving all results as False but give the one result as 0 (in number)? </p>
  
  <p>Likewise</p>
  
  <h3>B)</h3>
  
  <pre><code>True and 1 # gives 1, but
  
  1 and True # gives True
  </code></pre>
  
  <p>Why aren't all results in case 'B' <code>True</code> and 1st one gives 1?
  Why is it giving integers 1 and 0 as result (case A and B)? 
  Is there any thing like direction in this? </p>
  
  <h2>Question 2:</h2>
  
  <p>Do numbers other than or 0 &amp; 1 like 2,3,4,-2,-3  represent <code>False</code> or <code>True</code> in any way?</p>
  
  <h3>C)</h3>
  
  <pre><code>True == 1 # gives True 
  
  True == 2 # gives False, but
  
  True and 2 # gives False.
  </code></pre>
  
  <h3>D)</h3>
  
  <pre><code>False or 2 # gives 2
  
  2 or False # gives 2
  </code></pre>
  
  <p>Are the other integers like 2,3 etc taken as <code>False</code>?
  Why is it output in case D <code>2</code> and not <code>True</code> or <code>False</code>?</p>