Python not responding in loop
<p>Here is my code:</p>

<pre><code>from random import randint
doorNum = randint(1, 3)
doorInp = input("Please Enter A Door Number Between 1 and 3: ")
x = 1
while (x == 1) :
    if(doorNum == doorInp) :
        print("You opened the wrong door and died.")
        exit()
</code></pre>

<p>now, that works fine, if I happen to get the unlucky number.</p>

<pre><code>else :
    print("You entered a room.")
    doorNum = randint(1, 3)
</code></pre>

<p>This is the part where it stops responding entirely. I am running it in a bash interactive shell (Terminal, on osx). It just ends up blank.</p>

<p>I am new to programming in Python, I spent most of my time as a web developer.</p>

<p><strong>UPDATE:</strong></p>

<p>Thanks @rawing, I can not yet upvote (newbie), so will put it here.</p>