# REPL

> Python comes with a full-featured interactive command-line REPL (read-eval-print loop) built into the `python`executable. In addition to allowing quick and easy evaluation of Python statements, it has a searchable history, tab-completion, many helpful keybindings, and dedicated help `?` and shell modes `;`.

This page provides examples of using REPL on the command line

## Python REPL Example (local)

* Type `python` in terminal to launch REPL

<figure><img src="https://3954978562-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv4bMBkQ3ZBxkXjskIqBa%2Fuploads%2FMPYEPO1x8wbTZDCNVat2%2Fimage.png?alt=media&#x26;token=beb99aba-75bd-4250-a638-c390005d77c2" alt=""><figcaption></figcaption></figure>

## Python REPL Help Pages (local)

* Type "`help`" to enter help pages within REPL
* Type a function from Python to read help pages (ex:`print`)
* Press `q` to quit

<figure><img src="https://3954978562-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv4bMBkQ3ZBxkXjskIqBa%2Fuploads%2FvEtwZXUd9rIQ4pbqIwAY%2Fimage.png?alt=media&#x26;token=07f0c2b7-58e6-4d2e-a889-e139b6118bc5" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3954978562-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv4bMBkQ3ZBxkXjskIqBa%2Fuploads%2FazYY2g7rXPwpGay4Kbzt%2Fimage.png?alt=media&#x26;token=1bb44357-293a-4ec7-adef-b4cf355a4981" alt=""><figcaption></figcaption></figure>

## Resources

* Real Python: [The Python Standard REPL: Try Out Code and Ideas Quickly](https://realpython.com/python-repl/)
