I tried to check if it's cause of indentation but everything sorta checks out. The code was supposed to read the input statement and check if it matches the Yes or No condition and then print("works") for Yes and (No work) for No. But unfortunately, no matter what I put in the input, it'll only run for Yes and only yes. Below is the code to explain what I did.
ques = input('do you like red?')
if ques == 'yes' or 'Yes':
print('works')
else:
print('no work')