0 votes
in Python by
Which of the following is true about a docstring?

docstring is a document

docstring is a single lie string.

docstring is optional in a function, class or a module

doctsring is the second statement that appears in a function, class or a module.

1 Answer

0 votes
by
Ans is

docstring is optional in a function, class or a module

Related questions

0 votes
asked Feb 11, 2020 in Python by rahuljain1
0 votes
asked Jun 13, 2019 in Python by Derya
...