how to shutdown the computer immediately in windows 10 with python code example
Example 1: how to shutdown a computer with python
import os
os.system("shutdown /s /t 1")
Example 2: how to shutdown a windows 10 computer using python
import os
os.system("shutdown /s /t 1")