pip install wikipedia

C++
#pip install wikipedia
import wikipedia
question = input("What is your question? ")
print(wikipedia.summary(question)) print(wikipedia.page("Python").content)
pip install wikipedia
Source

Also in C++: