Infinite while loop
<p>Why is this while loop not ending when the proper input is entered (a number between 0 and 100)</p>

<pre><code>grade = 110
invalid_input = 1
while grade&lt; 0 or grade&gt; 100:
    if invalid_input &gt;=2:
        print "This is an invalid entry"
        print "Please enter a number between 0 and 100"
    grade= raw_input("Please enter your marks for Maths : ")
    invalid_input +=1
</code></pre>

<p>what ever i put in be it a number or text the (this is an invalid entry , Please enter a number between 0 and 100
does anyone one know what is wrong?</p>
