title: In which order is an if statement evaluated in Python
body: <p>If you have an if statement where several variables or functions are evaluated, in which order are they evaluated?</p>
  
  <pre><code>if foo &gt; 5 or bar &gt; 6:
      print 'foobar'
  </code></pre>
  
  <p>In this specific case, will foo be evaluated against the five and then bar against the 6 (left to right) or will it be evaluated right to left? I am assuming that a <code>or</code> and <code>and</code> is evaluated in the same order.</p>