Read text in a Word document with Python

You can read text with this code in a Word document.

from docx import Document

document = Document("file.docx")

for p in document.paragraphs:
	print(p.text)