What does a docstring do in Python?
Correct answer
A. Documents a module, class or function and is available through __doc__
A. Documents a module, class or function and is available through __doc__
The first string literal in a function body becomes its __doc__ attribute.
Asked in: Python Interview Functions
https://docs.python.org/3/tutorial/controlflow.html#defining-functionsNot sure why the answer is A? Ask here and get an explanation.