---
title: "Hello, World!"
---

```
*Purpose Summary. What is this page about?*

This page provides a simple "Hello, World!" example that demonstrates how to create, edit, and save a document using Aspose.Words for Python via .NET, including creating a document, inserting text, appending another document, and saving the result as PDF.
```

A "Hello, World!" code is often the first simple example to write uisng "Aspose.Words for Python via .NET", and it can also be used as a sanity test to ensure the software intended to compile or run source code is correctly installed.

"Aspose.Words for Python via .NET" library gives developers direct access to create, modify, merge, convert, compare Word and Web documents. PDF, DOCX, DOC, RTF, ODT, EPUB, HTML and many other file formats are [supported](/words/python-net/supported-document-formats/).

Below code snippet follows these steps:

1. Create a new empty [Document](https://reference.aspose.com/words/python-net/aspose.words/document/)
1. Initialize a [DocumentBuilder](https://reference.aspose.com/words/python-net/aspose.words/documentbuilder/) class
1. Insert text to the document start using simple [write](https://reference.aspose.com/words/python-net/aspose.words/documentbuilder/write/) method
1. Open an existing [Document](https://reference.aspose.com/words/python-net/aspose.words/document/) from a file. Automatically detects the file format
1. [Append](https://reference.aspose.com/words/python-net/aspose.words/document/append_document/) document "A" to the and of the document "B"
1. [Save](https://reference.aspose.com/words/python-net/aspose.words/document/save/) the output as PDF

The following code snippet is a "Hello, World!" example to exhibit working of "Aspose.Words for Python via .NET" API:

{{< gist "aspose-words-gists" "ff869587c650d2a27785d5cd598ae0b4" "hello-world.py" >}}