Related questions

0 votes
1 answer
asked Jul 20 in Python by anonymous
0 votes
0 answers
asked Aug 10 in SQL by anonymous
0 votes
0 answers
asked Aug 10 in SQL by anonymous
0 votes
1 answer
asked May 30 in java by anonymous
0 votes
1 answer

What is a docstring?

0 votes

What is a docstring?

asked Jul 17 in Python by anonymous

1 Answer

0 votes

docstring is the documentation string for a function. It can be accessed by

function_name.__doc__

it is declared as:

1

2

def function_name():

"""your docstring"""

Writing documentation for your progams is a good habit and makes the code more understandable and reusable.

answered Jul 17 by anonymous
...