how to change web browser in python

import webbrowser as wb
wb.register('chrome', None)
wb.open("https://www.google.com/") 

Here is what the above code is Doing:
1. Importing the webbrowser module.
2. Registering the webbrowser module to use the chrome browser.
3. Opening the google.com website in the chrome browser.