how to open app using python code example
Example 1: how to open any application using python
import os
os.system("program_name") # To open any program by their name recognized by windows
# OR
os.startfile("path to application or any file") # Open any program, text or office document
Example 2: how to close an application from python
import os
os.close(filename);