Related questions

0 votes
1 answer
asked Jul 20, 2017 in Python by anonymous
0 votes
0 answers
asked Aug 10, 2017 in SQL by anonymous
0 votes
0 answers
asked Aug 10, 2017 in SQL by anonymous
0 votes
1 answer
asked May 30, 2017 in java by anonymous
0 votes
1 answer
asked May 25, 2017 in learn seo free by anonymous

What is a docstring?

0 votes

What is a docstring?

asked Jul 17, 2017 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, 2017 by anonymous
...