Skip to content

rudymatela/hello-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A simple Hello World program in Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published