interpreter

The Python interpreter is the program that reads and executes Python code. It serves as both a translator and a runtime environment, converting Python code (a high-level language) into machine code that your computer can execute.

The Python interpreter includes both the core execution engine and the Python Virtual Machine (VM), which provides a layer of abstraction between your code and the computer’s hardware. The reference implementation of the Python interpreter is CPython, written in the C programming language.

Python interpreters typically include a REPL mode that allows you to interactively test small code snippets.

Tutorial

The Python Standard REPL: Try Out Code and Ideas Quickly

The Python REPL gives you instant feedback as you code. Learn to use this powerful tool to type, run, debug, edit, and explore Python interactively.

intermediate tools

For additional information on related topics, take a look at the following resources:


By Leodanis Pozo Ramos • Updated Jan. 8, 2025 • Reviewed by Dan Bader