We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 203fea9 commit 430a4eeCopy full SHA for 430a4ee
auto_shutdown/auto_shutdown.py
@@ -1,17 +1,21 @@
1
-import os
+import os
2
import time
3
-
+
4
5
def shutdown():
- os.system("shutdown /s /t 1")
6
+ os.system("shutdown /s /t 1")
7
8
9
set_time = input("Shutdown After ----> ")
10
11
12
set_time = int(set_time)
13
-sec = 60
14
+sec = 60
15
16
print('Computer Will Now Shutdown in ' + str(set_time) + ' Minutes')
17
time.sleep(set_time*sec)
18
print('\n')
-print('Computer Will Now Shutdown!')
19
+print('Computer Will Now Shutdown!')
20
time.sleep(3)
21
shutdown()
0 commit comments