Python – Function Documentation using docstring and help() – Code Example – Learn Python Coding



Python – Function Documentation using docstring and help() – Code Example – Learn Python Coding

Python - Function Documentation using docstring and help() - Code Example - Learn Python Coding

Comments help to guide the reader to better understand your code and its purpose and design.

Documentation helps to define and describe what your functions do.
A docstring, which is a string literal, surrounded by three quotations marks, and placed in the begging of a function’s body.
The help() function provides programmers with the documentation associated with an object.

Subscribe to Appficial for more programming videos coming soon. Also, don’t forget to click LIKE and comment on the video if it helped you out!

Comments are closed.