Answer the question
In order to leave comments, you need to log in
Finding an element in a table with docx python?
Thank you, but I ran into a problem in the future and tried to figure out why this code outputs not 4, but 3
from docx import Document
document = Document('1.docx')
table = document.tables[0]
cell = table.cell(1, 1)
print(cell.text)
Output: 3
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question