Skip to Content
Intuitive Python
book

Intuitive Python

by David Muller
May 2021
Intermediate to advanced
142 pages
3h 37m
English
Pragmatic Bookshelf
Content preview from Intuitive Python

Using Python’s Interactive Console to Run Programs

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Pythonic Programming

Pythonic Programming

Dmitry Zinoviev
Python for Geeks

Python for Geeks

Muhammad Asif

Publisher Resources

ISBN: 9781680508635Errata Page