Generating structure in Word documents

To create proper professional reports, they need to have the proper structure. An MS Word document doesn't have the concept of a page, as it works in paragraphs, but we can introduce breaks and sections to properly divide a document.

We'll see in this recipe how to create a structured Word document.

Get Python Automation Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.