My assignments from the Programming 1 module of my retraining program as an IT specialist (Fachinformatiker, IHK) at BFZ-Essen.
The tasks come from our class worksheets. After solving them in class, I rework each one here: I review my first version, fix the bugs I find and document what I learned.
- Test the program manually with cases chosen to break it, documented as a test table
- Write down what I learned and the known limitations
- Commit each step separately using Conventional Commits
| Assignment | File | Topics |
|---|---|---|
| Schaltjahr (leap year) | schaltjahr.py |
conditions, modulo, and / or |
| Palindrom | palindrom.py |
strings, slicing, .lower() |
| Häufigstes Element (most frequent number) | haeufigstes_element.py |
nested loops, resetting state |
| Primzahlen (prime numbers) | primzahlen.py |
nested loops, break, boolean flag |
Task descriptions, test tables and lessons learned for each assignment: programmierung-1/README.md
Functions and automated tests with pytest, once the Programming 2 module starts.