Opening Number Of Websites Using Python


So you just started in python programming, and want to prank your arch nemesis. Here i will teach you how to open any website on his computer using python.
Before you begin download and install python from Here

Step 1: Open notepad and type import webbrowser
In python the “import” statement is used to add a module to your project. In this case we want to add the webbrowser module.

Step 2:‘http://SITE HERE!.com’)
This is calling the open function on your default web browser. You pass it an url in the form of a string.
Possible usages: You can add as many websites as you want like shown below‘’)‘’)
url = “”;

The complete code will look something like below

import webbrowser‘’)‘’)‘’)‘’)

Step 3: Save the file
Enjoy pranking your friends and if you wish to learn more programming then check out our articlebelow.
Top 6 Websites To Learn Computer Programming Languages


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s