answers = {
    "qYesNo": {
        "label": 's/n',
        "true": ["s", "S", "y", "Y", "si", "Si"],
        "false": ["n", "N", "No", "no"]
    }
}

def qYesNo (label):
    ans = None
    answersYesNo = answers["qYesNo"]["true"].copy()
    answersYesNo.extend(answers["qYesNo"]["false"])
    while ans not in answersYesNo:
        ans = input("¿" + label + " (" + answers["qYesNo"]["label"] + ")? ")
        
    return (True if ans in answers["qYesNo"]["true"] else False)
answers = {
    "qYesNo": {
        "label": 's/n',
        "true": ["s", "S", "y", "Y", "si", "Si"],
        "false": ["n", "N", "No", "no"]
    }
}

def qYesNo (label):
    ans = None
    answersYesNo = answers["qYesNo"]["true"].copy()
    answersYesNo.extend(answers["qYesNo"]["false"])
    while ans not in answersYesNo:
        ans = input("¿" + label + " (" + answers["qYesNo"]["label"] + ")? ")
        
    return (True if ans in answers["qYesNo"]["true"] else False)