/
๐ŸŒ

WebBrowser.open

Python

Opening web browser with Python

import webbrowser

query = "Python history"

url = f"https://duckduckgo.com?q=!+{query}"

webbrowser.open(url)
Edit this page
Code Snippets & Notes by Makzan