I want the loop to end when unit is 1 or 2, but code doesn't recognize even when the input is 1 or 2.
print("Calculate how much water you should drink a day!")
unit = int(input("Would you like to use the imperial or metric system? Write 1 for imperial and 2 for metric.\n"))
while unit != 1 or unit != 2:
print("Write either 1 or 2 to choose.")
unit = int(input("Would you like to use the imperial or metric system? Write 1 for imperial and 2 for metric.\n"))