What is the purpose of doc strings in python?



What is the purpose of doc strings in python?..

Answer / Anoop Kumar

Docstrings provide documentation for Python functions, classes, and modules. They are used to explain the purpose, arguments, return values, and usage of the defined entities.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

What is a frozen set in python?

1 Answers  


Which method removes leading and trailing blanks in a string?

1 Answers  


What is the Lambda function?

3 Answers  


Which is better list or dictionary in python?

1 Answers  


How to check the string consists of alphanumeric characters ?

1 Answers  


What are the different types of inheritance in Python?

3 Answers  


Finally, tell us about bitwise operators in python?

1 Answers  


How do you create a project in python?

1 Answers  


How will you remove the last object from a list?

1 Answers  


What is the function of negative index?

1 Answers  


Give an example to capital first letter of a string?

1 Answers  


What is python private heap space?

1 Answers  


Categories