I write code.
if statement in function def.
i don't know why the answer always "yes"
suppose we type "n"
a = input('''Yes or No, Type [Y/N]''')
def test():
global a
if a == 'Y' or 'y':
print("yes")
elif a == 'N' or 'n':
print("no")
else:
print("Not Yes and Not No")
test()