title: While loop (really simple)
body: <p>I am working on the code below, I want <code>temp</code> be <code>1</code> or <code>2</code>, but it keeps running in the while loop.</p>
  <pre><code>temp = input(&quot;1 for yes/2 for no&quot;)
  while (temp!=&quot;1&quot; or temp!=&quot;2&quot;):
      print(&quot;please input 1 or 2&quot;)
      temp = input(&quot;1 for yes/2 for no&quot;)
  print(temp)
  </code></pre>