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.