McqMate
| 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 | |
View all MCQs in
Problem Solving and Python ProgrammingNo comments yet