kill python program code example
Example 1: how to stop the program in python
import sys
sys.exit()
Example 2: python kill script
import sys
sys.exit()
Example 3: python kill process windows
import os
os.system("taskkill /im make.exe")
import sys
sys.exit()
import sys
sys.exit()
import os
os.system("taskkill /im make.exe")