1# pip install webbrowser
2import webbrowser
3while True:
4 question = input("Question: ") # input question
5 webbrowser.open('http://www.google.com/search?q=' + question)
1# python3 -m pip install webbrowser
2import webbrowser
3
4question = input("What is your question? ")
5webbrowser.open("https://www.google.com" + str(question))