title: How to extract section numbers in a docx document using python-docx?
body: <p>I have a docx document which is structured into sections and subsections e.g.</p>
  
  <blockquote>
    <p><strong>Section A</strong></p>
    
    <p>texttexttext</p>
    
    <ol>
    <li><p>texttexttext</p>
    
    <p>1.1  texttexttext</p></li>
    <li><p>texttexttext</p>
    
    <p>(a) texttexttext</p></li>
    </ol>
  </blockquote>
  
  <p>I want to use python-docx to extract the text.  It is easy to get the text in the paragraphs but I do not know how to get the text of the section headings (e.g. "1." and "(a)" etc.).  Is there an easy way to do this?</p>