Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
1
Language: Python
Posted by: Jean-Pierre Hermans
Added: May 23, 2021 9:02 AM
Modified: May 23, 2021 9:03 AM
Views: 330
Tags: webbrowser
  1. '''Open a website in default browser'''
  2. import webbrowser
  3.  
  4. # Replace python.org with the website you want.
  5. webbrowser.open('https://www.python.org')
  6.  
Comments disabled