title: Determine whether integer is between two other integers
body: <p>How do I determine whether a given integer is between two other integers (e.g. greater than/equal to <code>10000</code> and less than/equal to <code>30000</code>)?</p>
  <p>What I've attempted so far is not working:</p>
  <pre><code>if number &gt;= 10000 and number &gt;= 30000:
      print (&quot;you have to pay 5% taxes&quot;)
  </code></pre>