chore: initialize containerized Python learning workbook (2026 DevOps/SRE)
This commit is contained in:
commit
ae4c421815
63 files changed
+1273
No files matched your search
@@ -0,0 +1,12 @@
|
||||
# 01 — Podstawy (zmienne, warunki, pętle, funkcje)
|
||||
|
||||
## Zadania (`basics.py`)
|
||||
1. `celsius_to_fahrenheit(c: float) -> float` — przelicz temperaturę ($F = C \cdot 1.8 + 32$).
|
||||
2. `classify_score(score: int) -> str` — `0..49` -> `"fail"`, `50..74` -> `"pass"`, `75..89` -> `"good"`, `90..100` -> `"excellent"`, inaczej `"invalid"`.
|
||||
3. `sum_up_to(n: int) -> int` — suma liczb od `1` do `n` włącznie (dla `<= 0` zwróć `0`).
|
||||
4. `fizzbuzz_label(n: int) -> str` — `"Fizz"`, `"Buzz"`, `"FizzBuzz"` lub `str(n)`.
|
||||
|
||||
## Uruchomienie testów
|
||||
```bash
|
||||
make test MOD=01-core/01-basics
|
||||
```
|
||||
Reference in new issue
Block a user