Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python exit program

#Exit everywhere with error message
import sys
sys.exit("Code not Pythonical")

#Exit with a specific status
import os
os._exit()

#Exit in interpreter
quit()

#Exit in Interpreter but more user friendly
exit()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #exit #program
ADD COMMENT
Topic
Name
4+2 =