Q.

Which of the following is a feature of DocString?

A. provide a convenient way of associating documentation with python modules, functions, classes, and methods
B. all functions should have a docstring
C. docstrings can be accessed by the     doc      attribute on objects
D. all of the mentioned
Answer» D. all of the mentioned
Explanation: python has a nifty feature called documentation strings, usually referred to by its shorter name docstrings. docstrings
2.8k
0
Do you find this helpful?
16

Discussion

No comments yet