in Python by (31.6k points)
What Is Docstring In Python?

1 Answer

0 votes
by (32.2k points)
A docstring is a unique text that happens to be the first statement in the following Python constructs:

Module, Function, Class, or Method definition.

A docstring gets added to the __doc__ attribute of the string object.

Now, read some of the Python interview questions on functions.

Related questions

0 votes
asked Jun 29, 2020 in Python by Robindeniel (20.8k points)
...