python if-condition based on int intput : <p>I want to print out a message if user input is != 0 or 1. </p>

<pre><code>entering = int(input('enter 0 or 1: '))
</code></pre>

<p>I can get it to work for either 0 or 1, but when I try to combine both in one if-condition, it doesn't work. Following 2 options I tried:</p>

<pre><code>if entering != 0 or entering != 1:
    print('invalid input')

if entering != 0 or 1:
    print('invalid input')
</code></pre>

<p>If I then enter 0 or 1, it still prints 'invalid input'. What am I missing?</p>
