So I wrote this loop as a part of a larger program, and it was supposed to confirm that the user wants to quit the program. [condition] being 1 causes the program to quit, so if the input is yes or y it should quit. It should only exit this loop and go back to the outer loop when the input is n or no, but for some reason it always exits the loop. Help?
def function_name(s):
return s.lower()
end = 0
while end == 0:
print('Are you sure you want to quit?')
decision = function_name(input())
if decision == 'n' or 'no':
end = 1
elif decision == 'y' or 'yes':
print('Goodbye!')
end = 1
condition = 1
else:
print("Sorry, I couldn't understand that.\n")