Answers for "docstring in python example"

1

docstring in python

"""The module's docstring"""

class MyClass:
    """The class's docstring"""

    def my_method(self):
        """The method's docstring"""

def my_function():
    """The function's docstring"""
Posted by: Guest on October-19-2021
0

Python Docstrings Example

Python Docstrings Example
def Add(a,b):
    '''Takes two number as input and returns sum of 2 numbers'''
    return a+b
Posted by: Guest on November-29-2021

Code answers related to "docstring in python example"

Python Answers by Framework

Browse Popular Code Answers by Language