The webbrowser library provides a convenient way to launch a URL with a browser window through the webbrowser.open() method. Numerous browser types are available, b
webbrowser.open()
If you plan to use the script in more than your machine, keep in mind that not everyone has a English version of Windows
import subprocess import os subprocess.Popen(r'"' + os.environ["PROGRAMFILES"] + '\Internet Explorer\IEXPLORE.EXE" www.google.com')