def query_func(question, default=False):
    """
    Ask a string question
    No input defaults to "no" which results in False
    """
    valid = {'yes': True, 'y': True, 'no': False, 'n': False}
    if default is True:
        prompt = ' [Y/n]'
    else:
        prompt = ' [y/N]'
    while True:
        print('%s %s' % (question, prompt))
        choice = input().lower()
        if choice == '':
            return default
        elif choice in valid:
            return valid[choice]
        else:
            print('Please respond with y/n')
