What is the purpose of the Python interactive shell (REPL)?
A. To execute Python scripts
B. To write and test Python code interactively
C. To debug Python code
D. To compile Python code
The Python interactive shell (REPL) allows users to write and test Python code interactively, line by line.