title: Multiple ifs and elifs in oneliner python
body: <p>I have this code:  </p>
  
  <pre><code>a = 0
  if 0 &lt; b &lt;= 100:
      a = 10
  elif 100 &lt; b &lt;= 1000:
      a = 40
  elif 1000 &lt; b &lt;= 5000:
      a = 90
  elif 5000 &lt; b &lt;= 10000:
      a = 180
  elif 10000 &lt; b &lt;= 20000:
      a = 350
  elif 20000 &lt; b &lt;= 100000:
      a = 700
  elif 100000 &lt; b &lt;= 300000:
      a = 1400
  elif 300000 &lt; b:
      a = 3300
  print a
  </code></pre>
  
  <p>Is there any way to reduce it somehow and maybe make one line?</p>