If condition in Python not working as expected?
The if condition doesn't work for two arguments i.e. quit or exit The problematic code is placed after the user input ( variable answer ) import random cond = True while cond: choiceList = ["rock", "paper", "scissors"] guess = random.choice(choiceList) score = 0 computer = 0 # asking input for the guess answer = input("\nYou choose: ") """ This doen't work for both conditions quit or exit """ """ More specifically it doesn't take two arguements """ """ quit as well as exit, but works completely fine for either one """ if(answer != "quit" or answer != "exit"): print("Computer choose: " + guess) if(answer == "quit" or answer == "exit"): cond = False else: print("Please input correct option!")