>>> # use a string constant as the first statement ... # of a function to document it ... >>> def biggest(numbers): ... """Returns the biggest number in numbers""" ... return max(numbers) ... >>> # python will store this string in a special ... # __doc__ attribute ... >>> biggest.__doc__ 'Returns the biggest number in numbers'