Skip to content

Instantly share code, notes, and snippets.

@sedaghatfar
Created April 8, 2013 01:48
Show Gist options
  • Save sedaghatfar/5333592 to your computer and use it in GitHub Desktop.
Save sedaghatfar/5333592 to your computer and use it in GitHub Desktop.
Asks user if he needs to study
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