how to close a python progam 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)
import sys
sys.exit()
import sys
sys.exit(0)