os.system('taskkill /F /IM processname')
e.g:  os.system('taskkill /F /IM chrome.exe')
I coded my own virtual assistant in python. I know how to start apps through my voice via os.system or os.startfile, but I don't know how to close the current window ?
How to close any window using OS library in python