Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python multiline docstring styles

def some_function(argument1):
    """Summary or Description of the Function

    Parameters:
    argument1 (int): Description of arg1

    Returns:
    int:Returning value

   """

    return argument1

print(some_function.__doc__)
Source by www.datacamp.com #
 
PREVIOUS NEXT
Tagged: #python #multiline #docstring #styles
ADD COMMENT
Topic
Name
6+7 =