I need to check if the input is correct, if not repeat the input process, but the code I use doesn't recognise the correct input as a correct input well. Please give me a solution. I'm a beginner in python.
cat_behaviour= []
print("\nIs the cat (A)ggressive or (F)riendly?\n")
behaviour = input().upper()
while not behaviour == 'A' or not behaviour == 'F':
print("You have entered a wrong input. Please enter A for aggressive or F for Friendly")
behaviour = input().upper()
cat_behaviour.append(behaviour)