What is a docstring in python?



What is a docstring in python?..

Answer / Santosh Kumar Pradhan

A docstring is a string literal that is the first statement of a module, function, or class definition. It serves as documentation for the object it accompanies.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

How to check whether a module is installed in python?

1 Answers  


Is python good for microservices?

1 Answers  


Is intel faster python?

1 Answers  


Write a script to connect to MySql database using Python?

1 Answers  


How long will it take to learn python?

1 Answers  


What is frozen set in python 3?

1 Answers  


How are phon blocks defined?

1 Answers  


What are the attributes?

1 Answers  


What is difference between pass and continue in python?

1 Answers  


How do you sort in python 3?

1 Answers  


Why was the language called as Python?

1 Answers  


Explain polymorphism in Python.

3 Answers  


Categories