Skip to content

Commit a4c5bd5

Browse files
authored
Update TakeABreak.py
1 parent 3bb0e28 commit a4c5bd5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

take_a_break/TakeABreak.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import webbrowser
22
import time
33

4-
total_breaks = 3
5-
break_count = 0
4+
total_breaks = int(3)
5+
break_count = int(0)
66

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

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

0 commit comments

Comments
 (0)