close program python os code example
Example 1: how to code python to close a program
import sys
sys.exit(0)
Example 2: how to close an application from python
import os
os.close(filename);
import sys
sys.exit(0)
import os
os.close(filename);