Skip to content

Instantly share code, notes, and snippets.

@dsouzadyn
Created June 27, 2017 07:11
Show Gist options
  • Save dsouzadyn/0db93247911b175216b0ef79ecbbfaeb to your computer and use it in GitHub Desktop.
Save dsouzadyn/0db93247911b175216b0ef79ecbbfaeb to your computer and use it in GitHub Desktop.
Udacity mini
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