Categories

Dec 14, 2019 in Python
Q: What Is Docstring In Python?

1 Answer

Dec 14, 2019
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.
Click here to read more about Python
Click here to read more about Insurance

Related questions

Madanswer
Jul 10 in Python
Aug 30 in Python
Aug 30 in Python
...