The code is supposed to return false if the user's input is not "Y" or "N". When the user types "Y", it ends the loop, but when the type "N" it still continues the loop. How can this be corrected?
# Ask if they want to continue
    while True:
        
        noOrYes = input(f"Do you want to continue? (Y/N)")
        if not noOrYes == "Y" or noOrYes == "N":
            print("Sorry, I didn't understand that.")
            #better try again... Return to the start of the loop
            continue
        else: 
            #firstName & lastName was successfully parsed!
            #we're ready to exit the loop.
            print(f"break")
            break
 
     
    