Python input never equals an integer
<p>I want to insert a number and if I put any number other than 4 it will tell me it's wrong, but if it's false it will tell me "gg you win, noob.". However when I insert 4, it tells me it's incorrect.</p>

<pre><code>x = input("Insert a numer: ")

while x != 4:
   print("incorrect")
    x =input("Insert another number: ")

if x == 4:
    print("gg you win, noob")
</code></pre>

<p>In Python 3+, <code>input</code> returns a string, and <code>4</code> does not equal <code>'4'</code>. You will have to amend to:</p>

<pre><code>while x != '4':
</code></pre>

<p>or alternatively use <code>int</code>, being careful to check for a <code>ValueError</code> if the input is not an int.</p>

python