Note: I'm using Python 2.7
I'm not very experienced at Python, but I decided to make a small simple program. Here is the 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.
But when I try to run it I get this: IDLE after i used the program a few times
Can someone tell me what i need to change or what is wrong with the code?