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
πŸ’¬ Discuss
βœ… Correct Answer: (D) all of the mentioned
Explanation: python has a nifty feature called documentation strings, usually referred to by its shorter name docstrings. docstrings

Explanation by: Mr. Dubey
python has a nifty feature called documentation strings, usually referred to by its shorter name docstrings. docstrings

πŸ’¬ Discussion

πŸ“Š Question Analytics

πŸ‘οΈ
1034
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
83%
Success Rate