def yes_or_no(prompt, default="yes"):
    yes_choices = ['yes', 'y']
    no_choices = ['no', 'n']

    choice = prompt_with_options(
        prompt, [yes_choices, no_choices], default)

    if choice == yes_choices:
        result = True
    else:
        assert choice == no_choices
        result = False

    return result
Return True if the user chooses 'yes', False if they choose 'no'.
dataset/ETHPy150Open bloomberg/phabricator-tools/py/phl/phlsys_choice.py/yes_or_no