Documenting functions in Python

To document individual functions in Python, use a docstring like this:

def example_function():
"""Performs xyz
More details here
"""

Discussed in answers here.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.