I was trying to make a simple program that asks for the sex of the user. And the only two inputs it accepts it is: "M" or "F".
Then:
sex = str(input('[ M / F ]: ')).upper().strip()
while sex != 'M' or sex != 'F':
print('error')
sex = str(input('try again [ M / F ]: ')).upper().strip()
print('It's done :)')
But it only works if i use the term "and" in the loop. It is not a big question but i really wanted to know why...