Getting the Most Out of the Python Standard REPL (Overview)
The Python standard shell, or REPL (Read-Eval-Print Loop), allows you to run Python code interactively while working on a project or learning the language. This tool is available in every Python installation, so you can use it at any moment.
As a Python developer, you’ll spend a considerable part of your coding time in a REPL session because this tool allows you to test new ideas, explore and experiment with new tools and libraries, refactor and debug your code, and try out examples.
In this video course, you’ll learn how to:
- Run the Python standard REPL, or interactive shell
- Write and execute Python code in an interactive session
- Quickly edit, modify, and reuse code in a REPL session
- Get help and introspect your code in an interactive session
- Tweak some features of the standard REPL
- Identify the standard REPL’s missing features
You’ll also learn about available feature-rich REPLs, such as IDLE, IPython, bpython, and ptpython.
To get the most out of this video course, you should be familiar with your operating system’s command line, or terminal. You should also know the basics of using the python
command to run your code.
00:00 Get the Most Out of the Python Standard REPL. The Python standard shell, or REPL (Read-Eval-Print Loop), allows you to run Python code interactively while working on a project or learning the language. This tool is available in every Python installation, so you can use it at any time. As a Python developer, REPL sessions are hugely valuable because this tool allows you to test new ideas, explore and experiment with new tools and libraries,
00:34 refactor and debug your code,
00:49 In this course, you’ll learn how to run the Python standard REPL, or interactive shell; write and execute Python code in an interactive session; quickly edit, modify, and reuse code in a REPL session; get help and introspect your code in an interactive session; tweak some features of the standard REPL; and identify the standard REPL’s missing features.
01:13 You’ll also learn about available feature-rich REPLs, such as IDLE, IPython, bpython, and ptpython. To get the most out of this course, you should be familiar with your operating system’s command line, or terminal.
01:28
You should also know the basics of using the python
command to run your code, as seen in this Real Python course. However, following along is often the best way to learn.
01:38 So see how you get on, and if you need to, you can always refer back to this course later on. So now you know what’s going to be covered, let’s get started.
Become a Member to join the conversation.