Python code looping when I don't want it to : <pre><code>x = 0
while True:
  choice = int(input ("Choose 1 or 2"))

  if choice == 2:
    print("You chose 2")
    x == 1
  if choice == 1:
    print("You chose 1")
    x == 1
  if choice &gt;2: 
    print("I said 1 or 2.")
    x == 0
  if choice &lt;1:
    print("I said 1 or 2")
    x == 0
</code></pre>

<p>So if I choose 1 or 2 I want it to stop but if I choose otherwise I want it to loop but it's looping always no matter what could somebody help with this?</p>
