
The Python Standard REPL: Try Out Code and Ideas Quickly
The Python Standard REPL: Try Out Code and Ideas Quickly 관련

Watch Now
This tutorial has a related video course created by the Real Python team. Watch it together with the written tutorial to deepen your understanding:

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 tutorial, 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 tutorial, 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.
Quiz - The Python Standard REPL: Try Out Code and Ideas Quickly

In this quiz, you'll test your understanding of the Python standard REPL. The Python REPL allows you to run Python code interactively, which is useful for testing new ideas, exploring libraries, refactoring and debugging code, and trying out examples.








Conclusion
You’ve learned how to work with Python in interactive mode using the standard shell, or REPL (Read-Eval-Print Loop). This tool comes in every Python installation so that you can use it at any moment to test new ideas, explore and experiment with new tools and libraries, refactor and debug your code, try out examples, and more.
In this tutorial, you’ve learned how to
- Start the Python standard REPL from your command line
- Use the REPL to write and execute Python code
- Edit, modify, and reuse code in an interactive session
- Access Python’s built-in help system and introspect your code
- Fine-tune some features of the Python standard REPL
- Understand the REPL’s missing features
You’ve also learned about alternative and feature-rich REPLs, such as IDLE, IPython, bpython, and ptpython, which provide IDE-like features that can highly improve your user experience and productivity while working in interactive mode.
Quiz - The Python Standard REPL: Try Out Code and Ideas Quickly

In this quiz, you'll test your understanding of the Python standard REPL. The Python REPL allows you to run Python code interactively, which is useful for testing new ideas, exploring libraries, refactoring and debugging code, and trying out examples.
Watch Now
This tutorial has a related video course created by the Real Python team. Watch it together with the written tutorial to deepen your understanding:

