python docstring use code example
Example 1: python function docstring
def functionName():
"""
This is a function docstring
"""
Example 2: python get function docstring
help(functionName)
Example 3: python docstring use
def function1():
"""
:docstring- tells about program,what the program contains
"""
Example 4: python docstring use
def function1():
"""
:docstring- tells about program,what the program contains
"""