IPython

    [Python] Python Interactive Shell (or Python Interactive Prompt)

    REPL or Interactive Mode Python을 가장 쉽게 (또는 naive하게) 사용하는 방법은 Python Shell을 통해 사용하는 것임. 이 경우, Python Interpreter는 사용자가 Python Shell의 prompt에 입력한 statement 단위로 수행을 시키고 해당 결과를 즉시 사용자에게 출력하고 나서 다시 prompt를 통해 사용자의 입력을 대기한다. 이같은 방식을 REPL (Run-Evaluation-Print, Loop)이라는 약어로 부르거나 interactive mode라고 부른다. Python code를 statement 단위로 입력받아 수행해서 결과를 출력해주는 프로그램을 Python Interactive Shell이라고 부름 : 한번에 한 statement..