{"id":3897,"date":"2020-08-20T11:42:43","date_gmt":"2020-08-20T06:12:43","guid":{"rendered":"http:\/\/www.pythonpool.com\/?p=3897"},"modified":"2022-11-15T14:07:03","modified_gmt":"2022-11-15T08:37:03","slug":"python-help-function","status":"publish","type":"post","link":"https:\/\/www.pythonpool.com\/python-help-function\/","title":{"rendered":"Python Help Function |  How to make use of Python Help"},"content":{"rendered":"\n<p>There are so many <strong>functions, modules, keywords<\/strong> in python that it is ubiquitous to get confused. And we need to have to look at how these things work quickly. <strong>To have a quick look, we can use the help function of python<\/strong>. It is a straightforward,<em> yet beneficial<\/em> function. We can use it in two ways. Either we can pass the keyword\/function in the argument or run the help() function without any dispute, and it will open an<strong> interactive shell.&nbsp;<\/strong><\/p>\n\n\n\n<p><strong>Python Help function is used to determine the composition of certain modules. We can get the methods defined in the module, attributes, classes of the module, function, or datatype. Not only this, but we also get the<em> docstring <\/em>(documentation) related to that object.&nbsp;<\/strong><\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_74 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #990303;color:#990303\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #990303;color:#990303\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.pythonpool.com\/python-help-function\/#Syntax_of_Python_Help_Function\" >Syntax&nbsp;of Python Help Function<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.pythonpool.com\/python-help-function\/#Parameter_of_python_help_function\" >Parameter of python help function-&nbsp;<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.pythonpool.com\/python-help-function\/#Return_Type\" >Return Type-&nbsp;<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.pythonpool.com\/python-help-function\/#How_to_use_the_Python_Help_function\" >How to use the Python Help function?&nbsp;<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.pythonpool.com\/python-help-function\/#Using_help_on_different_data_types\" >Using help() on different data types&nbsp;<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.pythonpool.com\/python-help-function\/#To_get_help_on_various_built-in_data-types_using_python_help_function\" >To get help on various built-in data-types using python help function<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.pythonpool.com\/python-help-function\/#Help_on_module\" >Help on module<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.pythonpool.com\/python-help-function\/#Using_help_on_print\" >Using help on print<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.pythonpool.com\/python-help-function\/#Help_Function_on_built-in_classes\" >Help Function on built-in classes<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.pythonpool.com\/python-help-function\/#Using_the_interactive_shell\" >Using the interactive shell<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.pythonpool.com\/python-help-function\/#What_if_we_want_help_on_function_that_doesnt_exist\" >What if we want help on function that doesn&#8217;t exist<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/www.pythonpool.com\/python-help-function\/#Must_Read\" >Must Read:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/www.pythonpool.com\/python-help-function\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\" id=\"h-syntax-of-python-help-function\"><span class=\"ez-toc-section\" id=\"Syntax_of_Python_Help_Function\"><\/span>Syntax&nbsp;of Python Help Function<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>help(object)&nbsp;<\/strong><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-parameter-of-python-help-function\"><span class=\"ez-toc-section\" id=\"Parameter_of_python_help_function\"><\/span>Parameter of python help function-&nbsp;<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p><strong>Object<\/strong> \u2013 This can be any<strong> keyword, any module, any class, any sub-module, or anything data type<\/strong> we want help. If nothing is passed, it opens an interactive shell that we can take help on any functions.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-return-type\"><span class=\"ez-toc-section\" id=\"Return_Type\"><\/span>Return Type-&nbsp;<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p><em>It returns doc<\/em>&#8211;<em>string containing all the information about the object.&nbsp;<\/em><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-how-to-use-the-python-help-function\"><span class=\"ez-toc-section\" id=\"How_to_use_the_Python_Help_function\"><\/span>How to use the Python Help function?&nbsp;<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-using-help-on-different-data-types\"><span class=\"ez-toc-section\" id=\"Using_help_on_different_data_types\"><\/span>Using help() on different data types&nbsp;<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Let us see how we can use the help function to know more about basic datatypes such as <strong>int, string, float, etc.&nbsp;<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\n# for integer\nhelp(int)\n# for string\nhelp(str)\n# for float\nhelp(float)\n<\/pre><\/div>\n\n\n<p>There are a lot of things that we get as the output, which are impossible to show here. We will truncate the output for you.<\/p>\n\n\n\n<p><strong>Description for int-<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">class int(object)\n |  int([x]) -&gt; integer\n |  int(x, base=10) -&gt; integer\n |  \n |  Convert a number or string to an integer, or return 0 if no arguments\n |  are given.  If x is a number, return x.__int__().  For floating point\n |  numbers, this truncates towards zero.\n |  \n |  If x is not a number or if base is given, then x must be a string,\n |  bytes, or bytearray instance representing an integer literal in the\n |  given base.  The literal can be preceded by '+' or '-' and be surrounded\n |  by whitespace.  The base defaults to 10.  Valid bases are 0 and 2-36.\n |  Base 0 means to interpret the base from the string as an integer literal.\n |  &gt;&gt;&gt; int('0b100', base=0)\n |  4<\/pre>\n\n\n\n<p><strong>Static Methods for str<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Static methods defined here:\n |  \n |  __new__(*args, **kwargs) from builtins.type\n |      Create and return a new object.  See help(type) for accurate signature.\n |  \n |  maketrans(x, y=None, z=None, \/)\n |      Return a translation table usable for str.translate().\n |      \n |      If there is only one argument, it must be a dictionary mapping Unicode\n |      ordinals (integers) or characters to Unicode ordinals, strings or None.\n |      Character keys will be then converted to ordinals.\n |      If there are two arguments, they must be strings of equal length, and\n |      in the resulting dictionary, each character in x will be mapped to the\n |      character at the same position in y. If there is a third argument, it\n |      must be a string, whose characters will be mapped to None in the result.<\/pre>\n\n\n\n<p><strong>Methods for float<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">| as_integer_ratio(self, \/)\n| Return integer ratio.\n| Return a pair of integers, whose ratio is exactly equal to the original float\n| and with a positive denominator.\n| Raise OverflowError on infinities and a ValueError on NaNs.\n| &gt;&gt;&gt; (10.0).as_integer_ratio()\n| (10, 1)\n| &gt;&gt;&gt; (0.0).as_integer_ratio()\n| (0, 1)\n| &gt;&gt;&gt; (-.25).as_integer_ratio()\n| (-1, 4)\n| conjugate(self, \/)\n| Return self, the complex conjugate of any float.\n| hex(self, \/)\n| Return a <a href=\"http:\/\/www.pythonpool.com\/python-hexadecimal-to-decimal\/\" target=\"_blank\" rel=\"noreferrer noopener\">hexadecimal<\/a> representation of a floating-point number.\n| &gt;&gt;&gt; (-0.1).hex()\n| '-0x1.999999999999ap-4'\n| &gt;&gt;&gt; 3.14159.hex()\n| '0x1.921f9f01b866ep+1'\n| is_integer(self, \/)\n| Return True if the float is an integer.<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-to-get-help-on-various-built-in-data-types-using-python-help-function\"><span class=\"ez-toc-section\" id=\"To_get_help_on_various_built-in_data-types_using_python_help_function\"><\/span>To get help on various built-in data-types using python help function<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>We can also take help on the methods available for various built-in data types like <strong>list, tuple, dict, set.<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\n# for list\nhelp(list)\n# for tuple\nhelp(tuple)\n# for dictionary\nhelp(dict)\n# for set\nhelp(set)\n<\/pre><\/div>\n\n\n<p> The output is so long for these built-in collections that, we will again have to show you partial outputs.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">class list(object)\n |  list(iterable=(), \/)\n |  \n |  Built-in mutable sequence.\n |  \n |  If no argument is given, the constructor creates a new empty list.\n |  The argument must be an iterable if specified.<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-help-on-module\"><span class=\"ez-toc-section\" id=\"Help_on_module\"><\/span>Help on module<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>We can take help on any module like <strong>math, matplotlib, numpy etc<\/strong>. The only thing to keep in mind is that if the module needs to be imported before use, we have to import it for getting help on it too. <em>Otherwise, we will get an <a href=\"https:\/\/en.wikipedia.org\/wiki\/Error_code#:~:text=In%20computer%20programming%2C%20a%20return,h%3E.\" target=\"_blank\" rel=\"noreferrer noopener\">error<\/a>.<\/em><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nimport math\nhelp(math)\n<\/pre><\/div>\n\n\n<pre class=\"wp-block-preformatted\">Help on built-in module math:\n\nNAME\n    math\n\nDESCRIPTION\n    This module is always available.  It provides access to the\n    mathematical functions defined by the C standard.\n\nFUNCTIONS\n    acos(x, \/)\n        Return the arc cosine (measured in <a href=\"http:\/\/www.pythonpool.com\/radians-to-degrees-python\/\" target=\"_blank\" rel=\"noopener\">radians<\/a>) of x.\nDATA \ne = 2.718281828459045 \ninf = inf \nnan = nan \npi = 3.141592653589793 \ntau = 6.283185307179586\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-using-help-on-print\"><span class=\"ez-toc-section\" id=\"Using_help_on_print\"><\/span>Using help on print<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>To get information on print function, use the below code.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nhelp(print)\n<\/pre><\/div>\n\n\n<pre class=\"wp-block-preformatted\">Help on built-in function print in module builtins:\n\nprint(...)\n    print(value, ..., sep=' ', end='\\n', file=sys.stdout, flush=False)\n    \n    Prints the values to a stream, or to sys.stdout by default.\n    Optional keyword arguments:\n    file:  a file-like object (stream); defaults to the current sys.stdout.\n    sep:   string inserted between values, default a space.\n    end:   string appended after the last value, default a newline.\n    flush: whether to forcibly flush the stream.<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-help-function-on-built-in-classes\"><span class=\"ez-toc-section\" id=\"Help_Function_on_built-in_classes\"><\/span>Help Function on built-in classes<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Suppose you are working in a team and you colleague has given you a code. Now you want to know the description and the methods that are available in those classes, you can take help on user-defined classes too.<\/p>\n\n\n\n<p><em>Suppose this is the code-<\/em><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nclass Car:\n    gear=0\n    def __init__(self,model,types,company):\n        self.model=model\n        self.types=types\n        self.company=company\n    def horn(self):\n        print(&quot;BEEP..BEEP..BEEP!&quot;)\n    def gear_up(self):\n        self.gear+=1\n    def gear_up(self):\n        self.gear-=1\n    def display_carinfo(self):\n        print(self.model,self.types,self.company)\n        \n<\/pre><\/div>\n\n\n<p>Suppose this is the class, and you don&#8217;t know about the methods and variables available. You can use help() on this class.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nhelp(Car)\n<\/pre><\/div>\n\n\n<pre class=\"wp-block-preformatted\">Help on class Car in module __main__:\n\nclass Car(builtins.object)\n |  Car(model, types, company)\n |  \n |  Methods defined here:\n |  \n |  __init__(self, model, types, company)\n |      Initialize self.  See help(type(self)) for accurate signature.\n |  \n |  display_carinfo(self)\n |  \n |  gear_up(self)\n |  \n |  horn(self)\n |  \n |  ----------------------------------------------------------------------\n |  Data descriptors defined here:\n |  \n |  __dict__\n |      dictionary for instance variables (if defined)\n |  \n |  __weakref__\n |      list of weak references to the object (if defined)\n |  \n |  ----------------------------------------------------------------------\n |  Data and other attributes defined here:\n |  \n |  gear = 0\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-using-the-interactive-shell\"><span class=\"ez-toc-section\" id=\"Using_the_interactive_shell\"><\/span>Using the interactive shell<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>We can use the interactive shell by <strong>not giving any argument <\/strong>in the python help() function.<\/p>\n\n\n\n<p>To start the interactive shell-<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nhelp()\n<\/pre><\/div>\n\n\n<p>We will get the output like this-<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"294\" src=\"http:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/Screenshot-397-1024x294.png\" alt=\"\" class=\"wp-image-3903\" srcset=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/Screenshot-397-1024x294.png 1024w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/Screenshot-397-300x86.png 300w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/Screenshot-397-768x221.png 768w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/Screenshot-397.png 1229w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Suppose if we want to know about &#8216;global&#8217; keyword, we can simply write it in the box near help.<\/p>\n\n\n\n<p>We will get the output like this-<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"798\" src=\"http:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/Screenshot-398-1024x798.png\" alt=\"python help function\" class=\"wp-image-3904\" srcset=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/Screenshot-398-1024x798.png 1024w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/Screenshot-398-300x234.png 300w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/Screenshot-398-768x599.png 768w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/Screenshot-398.png 1067w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>As soon as we got the output, we again get an box where we can know about any other function.<\/p>\n\n\n\n<p>To exit from the shell, we can simply type &#8216;quit&#8217; in the box and we will get out of it.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-what-if-we-want-help-on-function-that-doesn-t-exist\"><span class=\"ez-toc-section\" id=\"What_if_we_want_help_on_function_that_doesnt_exist\"><\/span>What if we want help on function that doesn&#8217;t exist<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>If we write something that doesn&#8217;t exist in the argument of help or in the interactive shell in the form of string, we will not get any error, instead we will get the following output. If we just put it as object, we will get an error.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nhelp(&quot;anything&quot;)\n<\/pre><\/div>\n\n\n<pre class=\"wp-block-preformatted\">No Python documentation found for 'anything'.\nUse help() to get the interactive help utility.\nUse help(str) for help on the str class.<\/pre>\n\n\n\n<h2 class=\"has-vivid-red-color has-text-color wp-block-heading\" id=\"h-must-read\"><span class=\"ez-toc-section\" id=\"Must_Read\"><\/span>Must Read:<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"http:\/\/www.pythonpool.com\/python-lowercase\/\">How to Convert String to Lowercase in<\/a><\/li><li><a href=\"http:\/\/www.pythonpool.com\/square-root-in-python\/\">How to Calculate Square Root<\/a><\/li><li><a href=\"http:\/\/www.pythonpool.com\/python-user-input\/\">User Input | Input () Function | Keyboard Input<\/a><\/li><li><a href=\"http:\/\/www.pythonpool.com\/python-book\/\">Best Book to Learn Python<\/a><\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-conclusion\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>It is quite common for us python programmers to use <strong>python help function<\/strong>, because of the variety of functions available in python. It gives a brief overview of the keyword and lists all the functions available in the function. We can also use the interactive shell by not passing any argument in the help().<\/p>\n\n\n\n<p>Try to run the programs on your side and let us know if you have any queries.<\/p>\n\n\n\n<p><strong><em>Happy Coding!<\/em><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are so many functions, modules, keywords in python that it is ubiquitous to get confused. And we need to have to look at how &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"Python Help Function |  How to make use of Python Help\" class=\"read-more button\" href=\"https:\/\/www.pythonpool.com\/python-help-function\/#more-3897\" aria-label=\"More on Python Help Function |  How to make use of Python Help\">Read more<\/a><\/p>\n","protected":false},"author":3,"featured_media":3910,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[15],"tags":[2089,2087,2075,2078,2088,2085,2076,2074,2077,2072,2080,2073,2084,2082,2079,2083,2086,2081],"class_list":["post-3897","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-documentation-python-help-function","tag-help-function-in-python","tag-help-function-python","tag-help-python-function","tag-how-to-use-help-function-in-python","tag-how-to-use-python-help-function","tag-python-function-help","tag-python-function-help-text","tag-python-help-command-to-get-function-usage","tag-python-help-function","tag-python-help-function-example","tag-python-help-on-function","tag-python-how-to-use-the-help-function","tag-python-jupyter-function-help","tag-python-reverse-function-help","tag-python-user-defined-function-help-text","tag-vs-code-how-to-call-help-function-for-python","tag-vscode-python-show-function-help","infinite-scroll-item"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v20.1 (Yoast SEO v25.0) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Python Help Function | How to make use of Python Help - Python Pool<\/title>\n<meta name=\"description\" content=\"To know about the various functions, keywords, module, user-defined classes, sub-modules we can use the Python help function.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.pythonpool.com\/python-help-function\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python Help Function | How to make use of Python Help\" \/>\n<meta property=\"og:description\" content=\"There are so many functions, modules, keywords in python that it is ubiquitous to get confused. And we need to have to look at how these things work\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.pythonpool.com\/python-help-function\/\" \/>\n<meta property=\"og:site_name\" content=\"Python Pool\" \/>\n<meta property=\"article:published_time\" content=\"2020-08-20T06:12:43+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-11-15T08:37:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/Theatre-Actor-Portfolio-Website-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1350\" \/>\n\t<meta property=\"og:image:height\" content=\"650\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Ashwini Mandani\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@pythonpool\" \/>\n<meta name=\"twitter:site\" content=\"@pythonpool\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ashwini Mandani\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.pythonpool.com\/python-help-function\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.pythonpool.com\/python-help-function\/\"},\"author\":{\"name\":\"Ashwini Mandani\",\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/person\/8a75fb48eb1f3dc952df65a8c28ac056\"},\"headline\":\"Python Help Function | How to make use of Python Help\",\"datePublished\":\"2020-08-20T06:12:43+00:00\",\"dateModified\":\"2022-11-15T08:37:03+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.pythonpool.com\/python-help-function\/\"},\"wordCount\":710,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.pythonpool.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.pythonpool.com\/python-help-function\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/Theatre-Actor-Portfolio-Website-1.png\",\"keywords\":[\"documentation python help function\",\"help function in python\",\"help function python\",\"help python function\",\"how to use help function in python\",\"how to use python help function\",\"python function help\",\"python function help text\",\"python help command to get function usage?\",\"python help function\",\"python help function example\",\"python help on function\",\"python how to use the help function\",\"python jupyter function help\",\"python reverse function help\",\"python user defined function help text\",\"vs code how to call help function for python\",\"vscode python show function help\"],\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.pythonpool.com\/python-help-function\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.pythonpool.com\/python-help-function\/\",\"url\":\"https:\/\/www.pythonpool.com\/python-help-function\/\",\"name\":\"Python Help Function | How to make use of Python Help - Python Pool\",\"isPartOf\":{\"@id\":\"https:\/\/www.pythonpool.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.pythonpool.com\/python-help-function\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.pythonpool.com\/python-help-function\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/Theatre-Actor-Portfolio-Website-1.png\",\"datePublished\":\"2020-08-20T06:12:43+00:00\",\"dateModified\":\"2022-11-15T08:37:03+00:00\",\"description\":\"To know about the various functions, keywords, module, user-defined classes, sub-modules we can use the Python help function.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.pythonpool.com\/python-help-function\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.pythonpool.com\/python-help-function\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.pythonpool.com\/python-help-function\/#primaryimage\",\"url\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/Theatre-Actor-Portfolio-Website-1.png\",\"contentUrl\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/Theatre-Actor-Portfolio-Website-1.png\",\"width\":1350,\"height\":650,\"caption\":\"python help function\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.pythonpool.com\/python-help-function\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.pythonpool.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python Help Function | How to make use of Python Help\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.pythonpool.com\/#website\",\"url\":\"https:\/\/www.pythonpool.com\/\",\"name\":\"Python Pool\",\"description\":\"Your One-Stop Python Learning Destination\",\"publisher\":{\"@id\":\"https:\/\/www.pythonpool.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.pythonpool.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.pythonpool.com\/#organization\",\"name\":\"Python Pool\",\"url\":\"https:\/\/www.pythonpool.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/logo\/image\/\",\"url\":\"http:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/aa.png\",\"contentUrl\":\"http:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/aa.png\",\"width\":452,\"height\":185,\"caption\":\"Python Pool\"},\"image\":{\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/pythonpool\",\"https:\/\/www.youtube.com\/c\/pythonpool\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/person\/8a75fb48eb1f3dc952df65a8c28ac056\",\"name\":\"Ashwini Mandani\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/f765ed1940ac0ae1d30ce4cb2f1452c1e83143b07354d25a42c1cd118980e269?s=96&d=wavatar&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/f765ed1940ac0ae1d30ce4cb2f1452c1e83143b07354d25a42c1cd118980e269?s=96&d=wavatar&r=g\",\"caption\":\"Ashwini Mandani\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Python Help Function | How to make use of Python Help - Python Pool","description":"To know about the various functions, keywords, module, user-defined classes, sub-modules we can use the Python help function.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.pythonpool.com\/python-help-function\/","og_locale":"en_US","og_type":"article","og_title":"Python Help Function | How to make use of Python Help","og_description":"There are so many functions, modules, keywords in python that it is ubiquitous to get confused. And we need to have to look at how these things work","og_url":"https:\/\/www.pythonpool.com\/python-help-function\/","og_site_name":"Python Pool","article_published_time":"2020-08-20T06:12:43+00:00","article_modified_time":"2022-11-15T08:37:03+00:00","og_image":[{"width":1350,"height":650,"url":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/Theatre-Actor-Portfolio-Website-1.png","type":"image\/png"}],"author":"Ashwini Mandani","twitter_card":"summary_large_image","twitter_creator":"@pythonpool","twitter_site":"@pythonpool","twitter_misc":{"Written by":"Ashwini Mandani","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.pythonpool.com\/python-help-function\/#article","isPartOf":{"@id":"https:\/\/www.pythonpool.com\/python-help-function\/"},"author":{"name":"Ashwini Mandani","@id":"https:\/\/www.pythonpool.com\/#\/schema\/person\/8a75fb48eb1f3dc952df65a8c28ac056"},"headline":"Python Help Function | How to make use of Python Help","datePublished":"2020-08-20T06:12:43+00:00","dateModified":"2022-11-15T08:37:03+00:00","mainEntityOfPage":{"@id":"https:\/\/www.pythonpool.com\/python-help-function\/"},"wordCount":710,"commentCount":0,"publisher":{"@id":"https:\/\/www.pythonpool.com\/#organization"},"image":{"@id":"https:\/\/www.pythonpool.com\/python-help-function\/#primaryimage"},"thumbnailUrl":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/Theatre-Actor-Portfolio-Website-1.png","keywords":["documentation python help function","help function in python","help function python","help python function","how to use help function in python","how to use python help function","python function help","python function help text","python help command to get function usage?","python help function","python help function example","python help on function","python how to use the help function","python jupyter function help","python reverse function help","python user defined function help text","vs code how to call help function for python","vscode python show function help"],"articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.pythonpool.com\/python-help-function\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.pythonpool.com\/python-help-function\/","url":"https:\/\/www.pythonpool.com\/python-help-function\/","name":"Python Help Function | How to make use of Python Help - Python Pool","isPartOf":{"@id":"https:\/\/www.pythonpool.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.pythonpool.com\/python-help-function\/#primaryimage"},"image":{"@id":"https:\/\/www.pythonpool.com\/python-help-function\/#primaryimage"},"thumbnailUrl":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/Theatre-Actor-Portfolio-Website-1.png","datePublished":"2020-08-20T06:12:43+00:00","dateModified":"2022-11-15T08:37:03+00:00","description":"To know about the various functions, keywords, module, user-defined classes, sub-modules we can use the Python help function.","breadcrumb":{"@id":"https:\/\/www.pythonpool.com\/python-help-function\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.pythonpool.com\/python-help-function\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pythonpool.com\/python-help-function\/#primaryimage","url":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/Theatre-Actor-Portfolio-Website-1.png","contentUrl":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/Theatre-Actor-Portfolio-Website-1.png","width":1350,"height":650,"caption":"python help function"},{"@type":"BreadcrumbList","@id":"https:\/\/www.pythonpool.com\/python-help-function\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.pythonpool.com\/"},{"@type":"ListItem","position":2,"name":"Python Help Function | How to make use of Python Help"}]},{"@type":"WebSite","@id":"https:\/\/www.pythonpool.com\/#website","url":"https:\/\/www.pythonpool.com\/","name":"Python Pool","description":"Your One-Stop Python Learning Destination","publisher":{"@id":"https:\/\/www.pythonpool.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.pythonpool.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.pythonpool.com\/#organization","name":"Python Pool","url":"https:\/\/www.pythonpool.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pythonpool.com\/#\/schema\/logo\/image\/","url":"http:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/aa.png","contentUrl":"http:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/aa.png","width":452,"height":185,"caption":"Python Pool"},"image":{"@id":"https:\/\/www.pythonpool.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/pythonpool","https:\/\/www.youtube.com\/c\/pythonpool"]},{"@type":"Person","@id":"https:\/\/www.pythonpool.com\/#\/schema\/person\/8a75fb48eb1f3dc952df65a8c28ac056","name":"Ashwini Mandani","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pythonpool.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/f765ed1940ac0ae1d30ce4cb2f1452c1e83143b07354d25a42c1cd118980e269?s=96&d=wavatar&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f765ed1940ac0ae1d30ce4cb2f1452c1e83143b07354d25a42c1cd118980e269?s=96&d=wavatar&r=g","caption":"Ashwini Mandani"}}]}},"_links":{"self":[{"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/posts\/3897","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/comments?post=3897"}],"version-history":[{"count":7,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/posts\/3897\/revisions"}],"predecessor-version":[{"id":24410,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/posts\/3897\/revisions\/24410"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/media\/3910"}],"wp:attachment":[{"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/media?parent=3897"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/categories?post=3897"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/tags?post=3897"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}