What are docstrings in Python?
Docstrings are string literals that appear as the first statement in a module, class, function, or method. They serve as documentation for the object and are accessible through the help()
function and docstring attributes.