Can someone tell me whats wrong with this python code?
<p>Note: I'm using Python 2.7</p>

<p>I'm not very experienced at Python, but I decided to make a small simple program. Here is the code:</p>

<pre><code>import random

while True:
    randomNumber = random.randrange(1, 3)
    print randomNumber
    guessedNumber = raw_input("Choose a number between 1 and 3 ")
    if randomNumber == guessedNumber:
        print 'Yay! You got it right!'
    else:
        print 'You got it wrong :( The number was:',randomNumber
#The first print is just for testing.
</code></pre>

<p>But when I try to run it I get this:
<a href="http://i.stack.imgur.com/w8oiu.png" rel="nofollow">IDLE after i used the program a few times</a></p>

<p>Can someone tell me what i need to change or what is wrong with the code?</p>