title: save text to a docx file python
body: <p>I have a structured text on python. I want to save it to a docx file.</p>
  
  <p>Something like</p>
  
  <pre><code>text = "A simple text\n Structured"
  
  with open('docx_file.docx', 'w') as f:
      f.write(text)
  </code></pre>