A docstring (documentation string) is a string written as the first statement of a function’s body. Python keeps it with the function, and help(f) prints it. In this book a docstring states the function’s specification.
Computer Science · शब्दावली
Computer Science · शब्दावली
A docstring (documentation string) is a string written as the first statement of a function’s body. Python keeps it with the function, and help(f) prints it. In this book a docstring states the function’s specification.