python quit program code example
Example 1: how to code python to close a program
import sys
sys.exit(0)
Example 2: exit python script
import sys
sys.exit()
Example 3: exit in python
import sys
msg = "bye bye"
sys.exit(msg)
# you can use it with out a msg