# Created By Moumen
importwikipediaimportjsonimporttime# Created By Moumen
print(f"Welcome To Wikipedia")lan=input(str("Language: "))test_file=open("log.txt","w")# Created By Moumen
whileTrue:question=input("Question: ")wikipedia.set_lang(lan)question_1=question.replace("What is","")# Created By Moumen
test_file=open("log.txt","a")test_file.write(f"\n{question_1}")test_file.close()answer_1=question.replace("What is","")search=wikipedia.page(answer_1)info=search.content# Created By Moumen
new_file=open(f"{answer_1}.txt","w")new_file.write(info)print("✅")# Created By Moumen
Top comments (0)
Subscribe
We're a place where coders share, stay up-to-date and grow their careers.
Top comments (0)