Created
April 8, 2013 01:48
-
-
Save sedaghatfar/5333592 to your computer and use it in GitHub Desktop.
Asks user if he needs to study
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 sys | |
print ("Do you need to study?") | |
print("") | |
question = input() | |
if question == "no": | |
webbrowser.open("http://facebook.com/") | |
webbrowser.open("https://mail.google.com/mail/u/0/#inbox") | |
webbrowser.open("http://reddit.com/") | |
elif question == "yes": | |
webbrowser.open("http://simplynoise.com/") | |
else: | |
webbrowser.open("http://google.com/") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment