the styles of paragraphs and runs look in restyled docx figure - the restyled docx file you can find more complete documentation on python-docx' use of styles at writing word documents enter the following into the interactive shellimport docx doc docx document(doc add_paragraph('helloworld!'doc save('helloworld docx'to create your own docx filecall docx document(to return newblank word document object the add_paragraph(document method adds new paragraph of text to the document and returns reference to the paragraph object that was added when you're done adding textpass filename string to the save(document method to save the document object to file this will create file named helloworld docx in the current working directory thatwhen openedlooks like figure - figure - the word document created using add_paragraph('helloworld!'