if you care only about the textnot the styling informationin the word documentyou can use the gettext(function it accepts filename of docx file and returns single string value of its text open new file editor tab and enter the following codesaving it as readdocx py#python import docx def gettext(filename)doc docx document(filenamefulltext [for para in doc paragraphsfulltext append(para textreturn '\njoin(fulltextthe gettext(function opens the word documentloops over all the paragraph objects in the paragraphs listand then appends their text to the list in fulltext after the loopthe strings in fulltext are joined together with newline characters the readdocx py program can be imported like any other module now if you just need the text from word documentyou can enter the followingimport readdocx print(readdocx gettext('demo docx')document title plain paragraph with some bold and some italic headinglevel intense quote first item in unordered list first item in ordered list you can also adjust gettext(to modify the string before returning it for exampleto indent each paragraphreplace the append(call in readdocx py with thisfulltext append(para textto add double space between paragraphschange the join(call code to thisreturn '\ \njoin(fulltextas you can seeit takes only few lines of code to write functions that will read docx file and return string of its content to your liking