In this we are going to see a basic program to shutdown computer in Python Programming Language.
import os
shutdown = input("Do you want to shutdown your computer (yes / no): ")
if shutdown == 'yes':
os.system("shutdown /s /t 1")
else:
print('You have not requested Shutdown')
# Coded by Saahil
#ENJOY CODING
Post a Comment
FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP