Where is a docstring written as the first statement of a function stored?
Correct answer A. In the function's __doc__ attribute
Explanation
A string literal that is the first statement in a module, class or function body becomes its docstring and is stored in the __doc__ attribute, which help() displays. Unlike a # comment, it is kept at runtime. __name__ holds the function's name, not its documentation.
Answer checked How we write and check questions
Discussion