Vidyalelo
Python · Q28

Functions in Python

Programming · Python · question 28

Q28

What is the purpose of a docstring in a function?

A.
It provides documentation for the function
Answer
B.
It is a reserved keyword
C.
It is used for debugging
D.
It is used to define a default value

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board