chore: initialize containerized Python learning workbook (2026 DevOps/SRE)

This commit is contained in:
soda64 committed 2026-11-30 22:55:56 +01:00
commit ae4c421815
63 files changed
+1273

No files matched your search

@@ -0,0 +1,11 @@
# 02 — Kolekcje (`list`, `tuple`, `dict`, `set`, slicing)
## Zadania (`collections_ex.py`)
1. `unique_sorted(items: list[int]) -> list[int]` — usuń duplikaty i posortuj rosnąco.
2. `word_counts(text: str) -> dict[str, int]` — policz wystąpienia słów (lowercase).
3. `first_and_last(items: list[str]) -> tuple[str, str] | None` — zwróć pierwszy i ostatni element lub `None` dla pustej listy.
## Uruchomienie testów
```bash
make test MOD=01-core/02-collections
```