ID EN
Sys

exit

Python 3.11

Raise a SystemExit exception, signaling an intention to exit the interpreter.

Syntax

PYTHON
sys.exit([arg])

See Also

SystemExit stderr exit() try SystemExit