how to end task in python code example Example: kill and run process in windows python import os os.system("taskkill /im make.exe")