def ask(message):
    """Ask user a question"""
    if not message.endswith('?'):
        message += ' ?'
    message += ' Y/N: '
    while True:
        inp = input(message).lower()
        if inp == 'y':
            return True
        elif inp == 'n' or inp == '':
            return False
        else:
            print('Invalid character.')