python-tutorial
python-tutorial copied to clipboard
Material for a Jupyter-based Python tutorial
A few ideas we briefly discussed on Fri, 14.11.2025: - Move the git part to the "Advanced" tutorial - Create some kind of CLI (e.g. `tutorial --help`) that can avoid...
- [ ] We should probably change "class attributes" to "instance attributes" in the error message of the `__str__` and `__repr__` exercise: https://github.com/empa-scientific-it/python-tutorial/blob/09b391de60866488ce0c108128bcd2a7774dbfd5/tutorial/tests/test_05_object_oriented_programming.py#L148-L163
Add the "Python Insights" notebook that we discussed on the Intro Tutorial in November 2025
- [ ] Exercise `solution_is_pure_number`: we're checking `if char in '0123456789'`, but the string might be a digit in another alphabet (e.g. Devangari). Built-in `str.isdigit()` will behave correctly, while the...
- [ ] The last two exercises before "Unpacking" **cannot be done** without loops. We need to remove them or move them to "Control Flow" - `solution_sets_of_even_and_odd` - `solution_tuple_increased_by_one`. This...
## Problem Description This issue has been **observed in practice** when testing the `02_control_flow.ipynb` notebook, but **cannot be reliably reproduced** in current testing environments. When a student's solution function failed...
Main goal is to migrate the tutorial to use the test suite built around pytest from the standalone package [`ipytestsuite`](https://github.com/empa-scientific-it/ipytestsuite) - [x] Align `requires-python` versions - [x] Add package to...