Q. What is the purpose of a docstring?

A
Declare variables
B
Document functionality
C
Define loops
D
Handle errors
Solution:

A docstring provides documentation for functions, classes, or modules.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!

    [honeypot honeypot-100]