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 3bb0e28 commit a4c5bd5Copy full SHA for a4c5bd5
take_a_break/TakeABreak.py
@@ -1,12 +1,12 @@
1
import webbrowser
2
import time
3
4
-total_breaks = 3
5
-break_count = 0
+total_breaks = int(3)
+break_count = int(0)
6
7
-print 'This program started on' + time.ctime()
+print("This program started on" + time.ctime())
8
9
while break_count < total_breaks:
10
- time.sleep(2 * 60 * 60)
11
- webbrowser.open('http://www.youtube.com')
12
- break_count += 1
+ time.sleep(int(2) * int(60) * int(60))
+ webbrowser.open("http://www.youtube.com")
+ break_count += int(1)
0 commit comments