def yes_no_prompt(question):
    """
    Print a yes/no *question* and return ``True`` (for yes) or ``False`` (for
    no) according to the user's response.
    """
    print('')
    while True:
        try:
            return {
                '': True,
                'y': True,
                'yes': True,
                'n': False,
                'no': False,
            }[input(question + ' [Y/n] ').strip().lower()]
        except KeyError:
            print('Invalid response')