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>Here, <code>if x == 4</code> is not necessary. Because until <code>x</code> is equal to <code>4</code> the <code>while</code> loop won't be passed. You can try like this:</p>

<pre><code>x = int(input("Insert a numer: "))
while x != 4:
    print("incorrect")
    x = int(input("Insert another number: "))

print("gg you win, noob")
</code></pre>

python