Back to main.

Calmcode Shorts

webbrowser.py logowebbrowser.py

Did you know that you can use python to open up a webpage? It's even a feature that's supported from the base library.

import webbrowser

webbrowser.open_new("https://calmcode.io")

If you run that as a script, you'll see the default browser open up the website that you point it to.


Back to main.