May 2021
Intermediate to advanced
142 pages
3h 37m
English
Python provides an interactive console where you can run Python code dynamically (without, for example, creating any source code files beforehand). Start Python’s interactive console by running python3 from your command line:
| | $ python3 |
| | Python 3.9.2 (default, Mar 12 2021, 18:54:15) |
| | [GCC 8.3.0] on linux |
| | Type "help", "copyright", "credits", or "license" for more information. |
| | >>> |
After you run python3, you’ll see several lines describing the version of Python you’re running. In the preceding example, Python is on version 3.9.2. As a reminder, the examples in this book all require Python 3.7 or higher.
After running python3, your cursor will be placed just after the >>> characters. This is where ...