Shutdown system just with few lines of python
Shutdown your system using python using built-in OS module.
Python Programming
import os
choice = input("Enter 1 to shutdown and 0 to exit : ")
if choice == 1:
os.system("shutdown /s /t 1")
elif choice == 0:
exit()
else:
print("Invalid input......")
#python #programming

Comments
Post a Comment