def query(question, default_answer='', help=''):
    """Ask user a question

    :param question: question text to user
    :param default_answer: any default answering text string
    :param help:  help text string
    :return: stripped answer string
    """
    prompt_txt = '{question} [{default_answer}] '.format(question=question,
        default_answer=default_answer)
    while True:
        answer = input(prompt_txt).strip()
        if answer:
            if answer == '?':
                print(help)
                continue
            else:
                return answer
        else:
            return default_answer
