Which built-in returns a function's documentation string in Python?
Correct answer
C. help()
9 views
C. help()
9 views
help(obj) displays the docstring; obj.__doc__ returns it as a string.
Asked in: Python Interview Functions
https://docs.python.org/3/tutorial/controlflow.html#defining-functionsNot sure why the answer is C? Ask here and get an explanation.