Google search Python documentation code example
Example: google search api python
# pip install webbrowser
import webbrowser
while True:
question = input("Question: ") # input question
webbrowser.open('http://www.google.com/search?q=' + question)