python-docx is a Python library for creating and updating Microsoft Word (.docx) files.
More information is available in the python-docx documentation.
You can also download python book pdf from here - https://www.java67.com/2017/05/top-7-free-python-programming-books-pdf-online-download.html?m=1. It's totally free.