Skip to content

Commit 5455621

Browse files
authored
Create TakeABreak.py
1 parent 813c6c3 commit 5455621

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

take_a_break/TakeABreak.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import webbrowser
2+
import time
3+
total_breaks = 3
4+
break_count = 0
5+
print("This program started on"+time.ctime())
6+
while(break_count < total_breaks):
7+
time.sleep(2*60*60)
8+
webbrowser.open("http://www.youtube.com")
9+
break_count+=1;

0 commit comments

Comments
 (0)