docs logo docs: assert

1 2 3 4 5 6 7 8 9
Notes

When you've got a function like this:

def some_func(a, b):
    """
    This function adds two variables together.
    """
    return a + b

Then you can inspect the docstring by querying:

some_func.__doc__

This enables us to parse the docstring and to do whatever we want with it.