how to close a python program with code code example
Example 1: python exit program
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)