This directory contains some examples to disburden the process of getting started with python programming. See the respective github-repo for updates. Of course you are welcome to suggest additional content by your self, e. g., via pull request.
How to use these examples:
- 01-hello-world.py:
- run
python3 01-hello-world.py
- run
- 02-hello-world-matplotlib.py
- run
python3 02-hello-matplotlib.py
- this example needs the python-package
matplotlib
to be installed - also note that this example shows an drawing and saves a pdf-file
- run
- 03-hello-world-web-application.py
- run
export FLASK_APP="03-hello-world-web-application.py"; flask run
- then open your browser at http://127.0.0.1:5000/
- this example needs the python-package
flask
to be installed
- run
- 04-run-unit-tests.py
- run
python3 04-run-uni-tests.py
- run
- 05-generate-docs
- see the README.md in that directory
- module_to_be_tested.py
- this is not an example on its own but instead used by example 04
If you are interested in scientific computing with python see http://www.tu-dresden.de/pythonkurs.