mirror of
https://github.com/hastagAB/Awesome-Python-Scripts.git
synced 2024-11-27 22:11:07 +00:00
9 lines
352 B
Python
9 lines
352 B
Python
|
import wikipedia
|
||
|
|
||
|
print("Welcome to the app which find an answer to your question from wikipedia")
|
||
|
|
||
|
while True:
|
||
|
ques = input("What would you like to ask Wikipedia?")
|
||
|
wikipedia.set_lang("en") #change "en" to convenient language for example wikipedia.set_lang("es") will set the language to spanish
|
||
|
print wikipedia.summary(ques, sentences=3)
|