open google python code example
Example 1: python open google
#Open google in python - Windows
import webbrowser
url='https://google.com'
webbrowser.get('C:/Program Files (x86)/Google/Chrome/Application/chrome.exe %s').open(url)
Example 2: how to open youtube from google chrome browser instead of internet explorerwhen coding in python
webbrowser.get('chrome').open('https://www.youtube.com')