A Read–eval–print loop (REPL) is an interactive programming environment that takes single user inputs, evaluates them, and returns the result to the user, facilitating rapid experimentation and debugging. It is commonly used in scripting languages like Python, Ruby, and Lisp, enabling users to test code snippets in real-time without the need for a full program compilation cycle.