Created
November 8, 2018 03:55
-
-
Save amandaroos/1b2a4ab3d47e29bcbcf3aa81c2cb5d59 to your computer and use it in GitHub Desktop.
Take a Break - Python
This file contains hidden or 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 time | |
| import webbrowser | |
| numberOfBreaks = 2 | |
| seconds = 1 | |
| while numberOfBreaks > 0: | |
| time.sleep(seconds) | |
| webbrowser.open("www.youtube.com") | |
| numberOfBreaks -= 1 | |
| print("done") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment