Created
June 27, 2017 07:11
-
-
Save dsouzadyn/0db93247911b175216b0ef79ecbbfaeb to your computer and use it in GitHub Desktop.
Udacity mini
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 | |
def main(): | |
total_breaks = input('Type in the number of breaks: ') | |
fav_video = raw_input('Paste your favorite video link here: ') | |
break_count = 0 | |
print 'Program started at ' + time.ctime() | |
while break_count < total_breaks: | |
time.sleep(2 * 60 * 60) | |
webbrowser.open(fav_video) | |
break_count = break_count + 1 | |
if __name__ == '__main__': | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment