title: How to find whether a number belongs to a particular range in Python?
body: <p>Suppose I want to check if <code>x</code> belongs to range 0 to 0.5. How can I do it?</p>
  <p>Can I use the <code>range</code> function for that?</p>