Skip to main content

2 docs tagged with "Docstrings"

View all tags

Comments and Docstrings

Following our exploration of Basic Console Input and Output, this article focuses on how to make your code more readable and understandable using comments and docstrings.

Docstrings and Type Hinting: Documenting Your Functions

Writing code that works is only half the battle. Writing code that you and others can understand months from now is just as important. This is where documentation comes in. In this article, we'll explore two powerful, related concepts for documenting your Python functions: docstrings and type hints. Mastering them will elevate the quality and professionalism of your code.