Well done!
You have completed Comments and Documentation Quiz!
Quiz Question 1 of 5
Why might a programmer choose to use a docstring at the beginning of a Python program, especially in a university research project or large-scale software development environment?
Choose the correct answer below:
-
A
A docstring is required by the Python interpreter to execute the program correctly.
-
B
Docstrings are automatically translated into multiple languages by the Python interpreter, making the code accessible to non-English speakers.
-
C
Docstrings provide detailed documentation for the program, including a summary and description, which is useful for others who may use the program without reading the source code, thereby enhancing the usability and clarity of the software.
-
D
Docstrings are necessary for generating real-time debugging reports during program execution.