Files

13 lines
586 B
Markdown

# 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
```