def ask_question(question, default=None, automatic=False):
    """
    Asks a given question and returns result
    """

    question = "[?] %s " % question

    if automatic:
        answer = default
        print("%s%s" % (question, answer))
    else:
        with kb.print_lock:
            answer = raw_input(question)

    print

    return answer
dataset/ETHPy150Open lightos/Panoptic/panoptic.py/ask_question/original