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>The result from <code>input()</code> will be a string, which you'll need to convert to an integer before comparing it:</p>

<pre><code>x = int(input("Insert another number: ")
</code></pre>

<p>This will raise a <code>ValueError</code> if your input is not a number.</p>

python