while loop with two specific conditions : <p>I've got a code something like:</p>

<pre><code>list1 = input()

while list1 != "y" or list1 != "n":
  print()
  print("INVALID INPUT")
  print()
  list1 = input()
</code></pre>

<p>and whenever I run it I get stuck in the loop regardless of the input.</p>

<p>I'd like the loop to end if I enter in either "y" or "n".</p>
