import webbrowser webbrowser.open_new('http://www.facebook.com')
Here is what the above code is Doing:
1. It’s importing the webbrowser module.
2. It’s opening a new tab in your default browser and loading the Facebook home page.
import webbrowser webbrowser.open_new('http://www.facebook.com')
Here is what the above code is Doing:
1. It’s importing the webbrowser module.
2. It’s opening a new tab in your default browser and loading the Facebook home page.