Skip to content

Commit 701b063

Browse files
authored
Update TakeABreak.py
1 parent 1108627 commit 701b063

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

take_a_break/TakeABreak.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1+
#!/usr/bin/python
2+
# -*- coding: utf-8 -*-
13
import webbrowser
24
import time
35

46
total_breaks = 3
57
break_count = 0
68

7-
print("This program started on"+time.ctime())
9+
print 'This program started on' + time.ctime()
810

9-
while(break_count < total_breaks):
10-
time.sleep(2*60*60)
11-
webbrowser.open("http://www.youtube.com")
12-
break_count+=1;
11+
while break_count < total_breaks:
12+
time.sleep(2 * 60 * 60)
13+
webbrowser.open('http://www.youtube.com')
14+
break_count += 1

0 commit comments

Comments
 (0)