how to get content type of a paragraph of word document using python code example Example: open word from python import os os.startfile('C:\\Path\\To\\file.docx')