← Go Back

How to Open a URL in the Web Browser

Using the webbrowser.open() standard function, which takes a URL address as argument and opens it in the system's default browser.

import webbrowser

webbrowser.open("https://pythonassets.com")

webbrowser url


🐍 You might also find interesting: