Check sibling questions

What are docstrings? How are they useful?

 

Answer:

A docstring is just a regular python triple- quoted string that is the first thing in a function body or a module or a class. They provide a convenient way of associating documentation with Python modules, functions, classes, and methods. 

They are useful because they explain features in an easily comprehensible way.

Are ads bothering you?

CA Maninder Singh's photo - Expert in Practical Accounts, Taxation and Efiling

Made by

CA Maninder Singh

CA Maninder Singh is a Chartered Accountant for the past 12 years. He also provides Accounts Tax GST Training in Delhi, Kerala and online.