Using in range(..) in an if-else statment
<p>python 2.7</p>

<p>Is it possible to do this:</p>

<pre><code>print "Enter a number between 1 and 10:"
number = raw_input("&gt; ")

if number in range(1, 5):
    print "You entered a number in the range of 1 to 5"
elif number in range(6, 10):
    print "You entered a number in the range of 6 to 10"
else:
    print "Your number wasn't in the correct range"
</code></pre>

<p>I find if I put a number between 1 to 10 it always falls to the else statement.</p>

<p>Is this an incorrect use of in range in an if-else statement?</p>

<p>Many thanks in advance,</p>
