def ynq(prompt):
    """
    Asks a yes or no question, returns True when yes is chosen.
    """
    prompt = f'{prompt} [y/n]'
    x = input(prompt).lower()
    answers = {'y': True, 'n': False, 'yes': True, 'no': False}
    while x not in answers:
        x = input(prompt).lower()
    return answers[x]
