A system shell is a command-line interface to the operating system, presented through a program called a terminal emulator (usually shortened to terminal).
An interpreter is a program, managed by the OS, that translates human-readable source code into executable machine code, and executes it.
python
shell command?The python
command tells the OS to start the python interpreter, which is an application that is managed by the OS. The python interpreter has two modes of operation.
It can launch an interactive shell:
$ python
It can run a script non-interactively:
$ python myscript.py
Note: The $
symbol is a convention used to denote shell input. It is not typed into the terminal.
atom
?Atom is a text editor. It edits text, and nothing else.
ipython
and why should it be preferred over python
?IPython is an interactive python shell. It behaves similarly to the python
command, but includes nice features for programmers including:
?
syntax for documentation%
syntax for “magic” commands (we’ll talk about those later, too)Straightforward. Demonstrate and emphasize =
vs ==