Computer Science, asked by Mahica728, 1 year ago

What are docstrings ? How are they useful ?

Answers

Answered by sarayu56
22
Python documentation strings (ordocstrings) provide a convenient way of associating documentation with Python modules, functions, classes, and methods. It's specified in source code that is used, like a comment, to document a specific segment of code.
Answered by SerenaBochenek
19

Define Docstrings.

Explanation:

Docstrings offer a good convenient way for Python plugins, features, classes, as well as techniques to link documents or information.

Their uses are given below:

  • It will explain the feature in an easily comprehensible way.
  • They have been used to having our code registered.
  • Also used for the documentation purpose.

Learn more:

https://brainly.in/question/5122293

Similar questions