Could someone explain the logic here or what I am asking? (Boolean operations)
<p>In Python 2.7</p>

<p>When asking the interpreter the following:</p>

<p><code>(1 or 3) &gt; 2</code> it returns <code>False</code></p>

<p>Why is this? What am I effectively asking the interpreter, apparently not if either 1 or 3 is greater than two.</p>

<p>Similarly, asking <code>(1 or 5) in range(2,6)</code> also returns <code>False</code></p>

<p>I am 100% sure it has to do with my (x or y) part of the statement, but again, why is this? I do not so much need a different way of stating something like this, as I understand I could just ask:  </p>

<pre><code>if x in range(2,6) or y in range(2,6):
</code></pre>

<p>But I was just wondering why it does not work!</p>
