how to quit code python code example
Example 1: python sys halt
import sys
#put your code here
sys.exit
Example 2: how to code python to close a program
import sys
sys.exit(0)
import sys
#put your code here
sys.exit
import sys
sys.exit(0)