I want to ask my user a yes or no question over and over again and keep giving the response 'Correct' or 'Incorrect' back to the user.
print("Answer Yes to this Question")
check = str(input())
while check == ['yes', 'y', 'Yes', 'Y']:
print('Correct!')
break
else:
print('Incorrect')
check = str(input('Try Again'))
I don't want the code to exit or finish, the user should be able to continously answer questions. Currently when I run the code, no matter what I do, the response I get back in terminal is 'Incorrect' after which I get to give one more input and then the code exits. What did I do wrong?