December 2018
Beginner to intermediate
796 pages
19h 54m
English
Another way of running Python is by calling the interactive shell. This is something we already saw when we typed python on the command line of our console.
So, open a console, activate your virtual environment (which by now should be second nature to you, right?), and type python. You will be presented with a couple of lines that should look like this:
$ pythonPython 3.7.0a3 (default, Jan 27 2018, 00:46:45)[Clang 9.0.0 (clang-900.0.39.2)] on darwinType "help", "copyright", "credits" or "license" for more information.>>>
Those >>> are the prompt of the shell. They tell you that Python is waiting for you to type something. If you type a simple instruction, something that fits in one line, that's all you'll ...
Read now
Unlock full access