/hello-py

A simple Hello World program in Python

Primary LanguagePythonGNU General Public License v2.0GPL-2.0

Hello World in Python

Build Status for Hello World in Python

This project contains a simple "Hello, World!" program written in Python.

The program prints "Hello, World!" and exits.

It is under CI through GitHub Actions.

Compiling and running

To run the program use the following command:

python src/hello.py

You should see the following on the screen:

Hello, World!

There is also a version of the hello world implemented in two separate files, with a library and a main program file. Run it with:

python src/hellomain.py

To run the tests, use pytest like so:

PYTHONPATH=src pytest

It will detect and run doctests and unit tests.

Or run tests individually:

PYTHONPATH=src python test/test_hello.py
python src/hellolib.py

Important files

Known bugs

This documentation is longer than the source code.

Useful reading