I've been making a very simple program which asks the user if they prefer apples or oranges. If the user writes apples, you will receive the message 'You prefer apples', and vice versa with oranges. If the user fails to write either 'apples' or 'oranges' they will be prompted to do it again.
For some reason however, regardless of if the user wrote 'apples' or 'oranges' it will still prompt them to write in their answer again. Here is an example.
Here is my code:
question = input('Do you prefer apples or oranges? ').lower()
while question!='apples' or question!='oranges':
question = input('Do you prefer apples or oranges? ').lower()
print('You prefer ' + question)