how to launch word in python code example
Example 1: open word from python
import os
os.startfile('C:\\Path\\To\\file.docx')
Example 2: open word document python
from docx import Document
document = Document()
document.save('test.docx')
import os
os.startfile('C:\\Path\\To\\file.docx')
from docx import Document
document = Document()
document.save('test.docx')