limit input to integer only (text crashes PYTHON program)
<p>Python novice here, trying to limit quiz input to number 1,2 or 3 only.<br>
If text is typed in, the program crashes (because text input is not recognised)<br>
Here is an adaptation of what I have:
Any help most welcome.</p>

<pre><code>choice = input("Enter Choice 1,2 or 3:")
if choice == 1:
    print "Your Choice is 1"
elif choice == 2:
    print "Your Choice is 2"  
elif choice == 3:
    print "Your Choice is 3"
elif choice &gt; 3 or choice &lt; 1:
    print "Invalid Option, you needed to type a 1, 2 or 3...."
</code></pre>
