close python script code example
Example 1: how to stop the program in python
import sys
sys.exit()
Example 2: how to code python to close a program
import sys
sys.exit(0)
Example 3: exit python script
import sys
sys.exit()
import sys
sys.exit()
import sys
sys.exit(0)
import sys
sys.exit()