Home
/
Python 3.11
/
Sys
/
exit
Python 3.0
Python 3.9
Python 3.11
Functions
ID
EN
…
Sys
exit
Python 3.11
Raise a SystemExit exception, signaling an intention to exit the interpreter.
Syntax
PYTHON
Copy
sys.exit([arg])
See Also
SystemExit
stderr
exit()
try
SystemExit