def validate_user_repsonse_yesno(value):
    response = False
    valid_values = ['y', 'yes'] # specified values in lowercase
    if not value:
        value = ''
    value = value.lower().strip().replace(" ","")
    if value in valid_values:
        response = True
    return response
Evaluate user response to yes/no question and return True/False
dataset/ETHPy150Open Esri/ops-server-config/SupportFiles/Utilities.py/validate_user_repsonse_yesno