Optional: good to know Step 6 of 16 on the Python Developer roadmap
Docstrings and type hints
A docstring explains what a function does, and type hints such as def total(prices: list[float]) -> float record what goes in and comes out. Editors use both to give you better suggestions and warnings.