title: how write serial number of the docx table in python
body: <p>i have many inputs and i'd like write they in .docx table with  serial number</p>
  <pre><code>def write():
  
      table = doc.add_table(rows=1, cols=3)
      table.style = &quot;Table Grid&quot;
  
  
      row = table.rows[0].cells
      row[0].text = &quot;name and surname&quot;
      row[1].text = &quot;relative&quot;
      row[2].text = &quot;year of birth&quot;
  
  
      for name_surname, relative, year_of_birth in data:
          row = table.add_row().cells
          row[0].text = name_surname
          row[1].text = relative
          row[2].text = year_of_birth
  </code></pre>