Created
June 6, 2018 18:38
-
-
Save alilosoft/0f8ce89f5de3cbc4a20c20768a746597 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import webbrowser | |
import time | |
times = 5 | |
print "Start working on: " + time.ctime() | |
while times > 0: | |
print "It's time for work!" | |
time.sleep(25 * 60) | |
print "Now, It's time to take a break!" | |
webbrowser.open("https://www.youtube.com/watch?v=1g5wM-YSNHo") | |
time.sleep(5 * 60) | |
times -= 1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment