Python Programming - Functions - Discussion

Discussion Forum : Functions - General Questions (Q.No. 46)
46.
What is the purpose of the __doc__ attribute?
To access the source code of a function.
To check if a function is a decorator.
To access the docstring of a function.
To define default values for function parameters.
Answer: Option
Explanation:
The __doc__ attribute is used to access the docstring (documentation string) of a function.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.