Restart System in Python February 14, 2022 import osrestart = input("Do you want to restart your pc (Y/N)")if restart =="y": os.system("shutdown /r /t 5")else: exit() Share Get link Facebook X Pinterest Email Other Apps Share Get link Facebook X Pinterest Email Other Apps Comments
Comments
Post a Comment