Answers for "python how to add documentation"

1

python how to add documentation

class SimpleClass:
    """Class docstrings go here."""

    def say_hello(self, name: str):
        """Class method docstrings go here."""

        print(f'Hello {name}')
Posted by: Guest on August-14-2021
1

python how to add documentation

def say_hello(name):
    print(f"Hello {name}, is it me you're looking for?")

say_hello.__doc__ = "A simple function that says hello... Richie style"
Posted by: Guest on August-14-2021

Code answers related to "python how to add documentation"

Python Answers by Framework

Browse Popular Code Answers by Language