Loading lesson…
Level 1 · Apprentice0 XP
Map what you know to Python: types, data classes, environments and tests.
Step 1 / 5
ProblemPython is easy to start and easy to make a mess with: no types, packages installed globally, a notebook nobody can rerun. As an engineer you want the same safety you have in Kotlin.
← → step
Before this: Capstone: design, build and defend one system
🛠️ Your turn
Reading is not the skill, doing is. Try for ten minutes before you open the hint. Getting stuck first is what makes the solution stick.
1.Create a project with uv, add pytest and pyright, and write a frozen dataclass Temperature(celsius: float) with a method to_fahrenheit(). Write two tests and make both pytest and pyright pass.