Python REPL

Interactive Python interpreter

Interview Relevant: Quick testing and debugging

Python REPL

The Read-Eval-Print Loop (REPL) allows you to run Python code interactively.

Type python in your terminal to start it.

Code Examples

Interactive session in the Python shell.

python
1>>> 2 + 2
24
3>>> name = "Alice"
4>>> print(name)
5Alice
6>>> exit()  # To quit

AI Tutor

Ask about the topic

Sign in Required

Please sign in to use the AI tutor

Sign In