https://wikipedia.search in python code example
Example: python wikipedia api search
#pip install wikipedia
import wikipedia
question = input("What is your question? ")
print(wikipedia.summary(question))
#pip install wikipedia
import wikipedia
question = input("What is your question? ")
print(wikipedia.summary(question))