Answers for "function comments python"

1

python comments

# Numpy-style python comments for functions
def foo(param_1=True):
  """Example function.

    Parameters
    ----------
    param_1 : bool, optional
        The first parameter (default is True)

    Returns
    -------
    num
        a number
    """
  return -1
Posted by: Guest on April-30-2021
5

how to comment python

# This is a comment
'''
This is a
MULTI LINE comment!
'''
Posted by: Guest on September-06-2020

Python Answers by Framework

Browse Popular Code Answers by Language