When I run the following code:
i = None
O = ['n', 'y', 'No', 'Yes']
while i not in O:
i = input('Yes or No?\n')
if i == 'y' or 'Yes':
print('Yes')
if i == 'n' or 'No':
print('No')
The output is n Yes No
Should the code only be displaying No as the output since the first if statement was false? Or am I not understanding something?
Thank you