pip install requests
import requests
print(requests.get("https://google.com/search", params={"q": input()}).text)
Jeśli goły html to za mało to możesz googlować w przeglądarce:
import urllib.parse
import webbrowser
webbrowser.open(f"https://google.com/search?{urllib.parse.urlencode({'q':input()})}")