Skip to content

Commit 430a4ee

Browse files
flake8 linted
1 parent 203fea9 commit 430a4ee

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

auto_shutdown/auto_shutdown.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
1-
import os
1+
import os
22
import time
3-
3+
4+
45
def shutdown():
5-
os.system("shutdown /s /t 1")
6+
os.system("shutdown /s /t 1")
7+
68

79
set_time = input("Shutdown After ----> ")
10+
11+
812
set_time = int(set_time)
913

10-
sec = 60
14+
sec = 60
1115

1216
print('Computer Will Now Shutdown in ' + str(set_time) + ' Minutes')
1317
time.sleep(set_time*sec)
1418
print('\n')
15-
print('Computer Will Now Shutdown!')
19+
print('Computer Will Now Shutdown!')
1620
time.sleep(3)
1721
shutdown()

0 commit comments

Comments
 (0)