title: number in a given range if loop python
body: <p>I'm trying to compute this simple expression in python:</p>
  
  <p>if a number is bigger than -1.0 and smaller than 1.0 do something.</p>
  
  <p>I tried this:</p>
  
  <pre><code>if x &gt; '-1.0' and x &lt; '1.0':
      DoSomething
  </code></pre>
  
  <p>but it turns out that it evaluates only the second part (x &lt; '1.0').
  I also tried</p>
  
  <pre><code>if '-1.0' &lt; x &lt; '1.0':
      DoSomething 
  </code></pre>
  
  <p>but strangely I don't get what I want. Any suggestion please????</p>