I want to print out a message if user input is != 0 or 1.
entering = int(input('enter 0 or 1: '))
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:
if entering != 0 or entering != 1:
print('invalid input')
if entering != 0 or 1:
print('invalid input')
If I then enter 0 or 1, it still prints 'invalid input'. What am I missing?