Document string : Help « Development « Python






Document string

"""
Module documentation
Words Go Here
"""

spam = 40

def square(x):
    """
    function documentation 
    """
    return x **2

class employee:
    "class documentation"
    pass

print square(4)
print square.__doc__



import sys
help(sys.getrefcount)

help(sys)

help(dict)

help(str.replace)

help(ord)

help(docstrings.square)

def square(x):
     """
     function documentation
      ?
     """
     pass
    
help(docstrings.employee)

help(docstrings)


           
       








Related examples in the same category

1.dir() and help() functions interactive aidsdir() and help() functions interactive aids