import webbrowser
import time
no_of_breaks = 3
breaks_count = 0
#count = 0
while (breaks_count < no_of_breaks):
time.sleep(2)
webbrowser.open("https://www.google.co.in")
breaks_count = breaks_count + 1
print "Good bye!"
Open link with in every two sec
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.