Help Function:

The help function is there for the display of documentation of modules, functions, classes, keywords, etc. In python while using it for data science we use the following syntax for help function.


In case we pass the help function without any argument, in that case, interactive help utility will start up on the console.

Let us look into this through an example:

python for data science

The output of help function can be defined for user-defined functions and classes. The document string (docstring) comes in handy for documentation. It is the first statement within a class or a module or function. Also, it is nested inside triple quotes.

If you want to learn more about help function in python for data science then you can check this and this as well.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.