0 votes
in Python by
Can you please explain what is Docstring in Python Language?

1 Answer

0 votes
by

A docstring is a unique text that happens to be the first statement in the following Python Language 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 Language interview questions on functions.

Related questions

0 votes
asked Dec 14, 2019 in Python by sharadyadav1986
0 votes
asked Aug 30, 2020 in Python by sharadyadav1986
...