{"id":25522418,"date":"2022-04-28T13:11:46","date_gmt":"2022-04-28T07:41:46","guid":{"rendered":"https:\/\/entri.app\/blog\/?p=25522418"},"modified":"2023-05-04T10:51:06","modified_gmt":"2023-05-04T05:21:06","slug":"most-important-things-to-know-about-python-functions","status":"publish","type":"post","link":"https:\/\/entri.app\/blog\/most-important-things-to-know-about-python-functions\/","title":{"rendered":"Most Important Things to Know About Python Functions"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_79_2 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69d3542d2411c\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" 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: #999;color:#999\" 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><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69d3542d2411c\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/entri.app\/blog\/most-important-things-to-know-about-python-functions\/#Python_Built-in_Functions_and_Methods_List_with_Examples\" >Python Built-in Functions and Methods List with Examples<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/entri.app\/blog\/most-important-things-to-know-about-python-functions\/#Built-in_functions_in_Python\" >Built-in functions in Python<\/a><\/li><\/ul><\/nav><\/div>\n<div class=\"b_module_expansion\">\n<div class=\"b_expansion_wrapper b_collapse b_onpage_expansion\" role=\"button\">\n<div class=\"b_expansion_text b_1linetrunc\" aria-label=\"What is a function in Python?\">What is a function in Python?<\/div>\n<\/div>\n<\/div>\n<div id=\"wire3\" class=\"b_expandable_inline_container\" data-rinterval=\"-1\" data-errormessage=\"We can't find any more info about this page right now\">\n<div class=\"df_alsocon b_primtxt\" data-tag=\"RelatedQnA.ItemDetails\">\n<div class=\"rwrl rwrl_small rwrl_padref\">The most important concept to understand is that in Python, functions are objects. This means a function can return another function and one function can take another function as an argument. We can also define a function within another function. Functions can also be assigned to a variable.<\/div>\n<div>\n<div class=\"b_module_expansion\">\n<div class=\"b_expansion_wrapper b_collapse b_onpage_expansion\" role=\"button\">\n<div class=\"b_expansion_text b_1linetrunc\" aria-label=\"What are some of the built-in functions and methods in Python?\">What are some of the built-in functions and methods in Python?<\/div>\n<\/div>\n<\/div>\n<div id=\"wire5\" class=\"b_expandable_inline_container\" data-rinterval=\"-1\" data-errormessage=\"We can't find any more info about this page right now\">\n<div class=\"df_alsocon b_primtxt\" data-tag=\"RelatedQnA.ItemDetails\">\n<div class=\"rwrl rwrl_small rwrl_padref\">Here&#8217;s a list of valuable built-in Python functions and methods that shorten your code and improve its efficiency. Python&#8217;s reduce () function iterates over each item in a list, or any other iterable data type, and returns a single value.<\/div>\n<div><a href=\"https:\/\/entri.app\/course\/python-programming-course\/\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-25520910 size-full\" src=\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/04\/Python-and-Machine-Learning-Square.png\" alt=\"Python and Machine Learning Square\" width=\"345\" height=\"345\" srcset=\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/04\/Python-and-Machine-Learning-Square.png 345w, https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/04\/Python-and-Machine-Learning-Square-300x300.png 300w, https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/04\/Python-and-Machine-Learning-Square-150x150.png 150w, https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/04\/Python-and-Machine-Learning-Square-24x24.png 24w, https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/04\/Python-and-Machine-Learning-Square-48x48.png 48w, https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/04\/Python-and-Machine-Learning-Square-96x96.png 96w, https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/04\/Python-and-Machine-Learning-Square-75x75.png 75w\" sizes=\"auto, (max-width: 345px) 100vw, 345px\" \/><\/a><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div><\/div>\n<div>\n<section class=\"main-content\">\n<article class=\"article\">\n<section class=\"single-body\">\n<header class=\"single-header\">\n<div class=\"single-header-flex\">\n<div class=\"header-title\">\n<h2><span class=\"ez-toc-section\" id=\"Python_Built-in_Functions_and_Methods_List_with_Examples\"><\/span><strong>Python Built-in Functions and Methods List with Examples<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<div class=\"article-data\"><\/div>\n<div class=\"vdo-ads-wrapper ad-cls-block-580x400\">\n<div class=\"primisslate\">\n<div id=\"primis_container_div\">\n<div id=\"primis_playerSekindoSPlayer62687521be926\">\n<div id=\"Player-Div-SekindoSPlayer62687521be926\">\n<div id=\"Video-Div-SekindoSPlayer62687521be926\">\n<div id=\"Video-iFrame-SekindoSPlayer62687521be926\">\n<div id=\"layoutContainerDiv\">\n<div id=\"layoutDesign\">\n<div id=\"topRightElements\">\n<div id=\"primisLogoWrapper\">In this article , we will learn about the useful list of Python built-in functions and methods. Let\u2019s understand what Python built-in functions are. Python built-in functions are those functions which are used to solve everyday programming tasks. These built-in functions are based on the functional programming model. We are going to discuss some of the best\u00a0Python 3 built-in functions and methods\u00a0in alphabetical order.<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/header>\n<div class=\"LinkedBlock\">\n<div class=\"vdo-ads-wrapper ad-cls-block-580x250\">\n<div id=\"bsa-zone_1574377674646-5_123456\" class=\"bsa-ad\" data-google-query-id=\"CJbz963msvcCFYaNUQodmRsKgg\">\n<div id=\"google_ads_iframe_\/8691100\/Positronx_S2S_Leaderboard_BTF_0__container__\"><\/div>\n<\/div>\n<\/div>\n<p>I will tell you about mostly used built-in methods in Python 3 along with the real-world examples. Now the question arises why do we need to check out this list, let me tell you why we need to have a look thoroughly in this useful Python 3 built-in functions list because these built-in functions will help us to solve common programming problems daily.<\/p>\n<p style=\"text-align: center;\"><strong><a class=\"in-cell-link\" href=\"https:\/\/entri.app\/course\/python-programming-course\/\" target=\"_blank\" rel=\"noopener\">&#8220;Ready to take your python skills to the next level? Sign up for a free demo today!&#8221;<\/a><\/strong><\/p>\n<\/div>\n<div class=\"LinkedBlock\">\n<h2><span class=\"ez-toc-section\" id=\"Built-in_functions_in_Python\"><\/span><strong>Built-in functions in Python<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Python 3 offers nearly around 68 built-in functions and methods to make python developers life easy. You can see below mostly used Python built-in methods with examples.<\/p>\n<p>Without further ado, Let\u2019s begin checking out this useful\u00a0<strong>Python 2 | 3 built-in methods cheat sheet<\/strong>.<\/p>\n<\/div>\n<div class=\"LinkedBlock\">\n<div class=\"code-toolbar\">\n<p>Python has a set of built-in functions.<\/p>\n<table class=\"ws-table-all notranslate\">\n<tbody>\n<tr>\n<th>Function<\/th>\n<th>Description<\/th>\n<\/tr>\n<tr>\n<td>abs()<\/td>\n<td>Returns the absolute value of a number<\/td>\n<\/tr>\n<tr>\n<td>all()<\/td>\n<td>Returns True if all items in an iterable object are true<\/td>\n<\/tr>\n<tr>\n<td>any()<\/td>\n<td>Returns True if any item in an iterable object is true<\/td>\n<\/tr>\n<tr>\n<td>ascii()<\/td>\n<td>Returns a readable version of an object. Replaces none-ascii characters with escape character<\/td>\n<\/tr>\n<tr>\n<td>bin()<\/td>\n<td>Returns the binary version of a number<\/td>\n<\/tr>\n<tr>\n<td>bool()<\/td>\n<td>Returns the boolean value of the specified object<\/td>\n<\/tr>\n<tr>\n<td>bytearray()<\/td>\n<td>Returns an array of bytes<\/td>\n<\/tr>\n<tr>\n<td>bytes()<\/td>\n<td>Returns a bytes object<\/td>\n<\/tr>\n<tr>\n<td>callable()<\/td>\n<td>Returns True if the specified object is callable, otherwise False<\/td>\n<\/tr>\n<tr>\n<td>chr()<\/td>\n<td>Returns a character from the specified Unicode code.<\/td>\n<\/tr>\n<tr>\n<td>classmethod()<\/td>\n<td>Converts a method into a class method<\/td>\n<\/tr>\n<tr>\n<td>compile()<\/td>\n<td>Returns the specified source as an object, ready to be executed<\/td>\n<\/tr>\n<tr>\n<td>complex()<\/td>\n<td>Returns a complex number<\/td>\n<\/tr>\n<tr>\n<td>delattr()<\/td>\n<td>Deletes the specified attribute (property or method) from the specified object<\/td>\n<\/tr>\n<tr>\n<td>dict()<\/td>\n<td>Returns a dictionary (Array)<\/td>\n<\/tr>\n<tr>\n<td>dir()<\/td>\n<td>Returns a list of the specified object&#8217;s properties and methods<\/td>\n<\/tr>\n<tr>\n<td>divmod()<\/td>\n<td>Returns the quotient and the remainder when argument1 is divided by argument2<\/td>\n<\/tr>\n<tr>\n<td>enumerate()<\/td>\n<td>Takes a collection (e.g. a tuple) and returns it as an enumerate object<\/td>\n<\/tr>\n<tr>\n<td>eval()<\/td>\n<td>Evaluates and executes an expression<\/td>\n<\/tr>\n<tr>\n<td>exec()<\/td>\n<td>Executes the specified code (or object)<\/td>\n<\/tr>\n<tr>\n<td>filter()<\/td>\n<td>Use a filter function to exclude items in an iterable object<\/td>\n<\/tr>\n<tr>\n<td>float()<\/td>\n<td>Returns a floating point number<\/td>\n<\/tr>\n<tr>\n<td>format()<\/td>\n<td>Formats a specified value<\/td>\n<\/tr>\n<tr>\n<td>frozenset()<\/td>\n<td>Returns a frozenset object<\/td>\n<\/tr>\n<tr>\n<td>getattr()<\/td>\n<td>Returns the value of the specified attribute (property or method)<\/td>\n<\/tr>\n<tr>\n<td>globals()<\/td>\n<td>Returns the current global symbol table as a dictionary<\/td>\n<\/tr>\n<tr>\n<td>hasattr()<\/td>\n<td>Returns True if the specified object has the specified attribute (property\/method)<\/td>\n<\/tr>\n<tr>\n<td>hash()<\/td>\n<td>Returns the hash value of a specified object<\/td>\n<\/tr>\n<tr>\n<td>help()<\/td>\n<td>Executes the built-in help system<\/td>\n<\/tr>\n<tr>\n<td>hex()<\/td>\n<td>Converts a number into a hexadecimal value<\/td>\n<\/tr>\n<tr>\n<td>id()<\/td>\n<td>Returns the id of an object<\/td>\n<\/tr>\n<tr>\n<td>input()<\/td>\n<td>Allowing user input<\/td>\n<\/tr>\n<tr>\n<td>int()<\/td>\n<td>Returns an integer number<\/td>\n<\/tr>\n<tr>\n<td>isinstance()<\/td>\n<td>Returns True if a specified object is an instance of a specified object<\/td>\n<\/tr>\n<tr>\n<td>issubclass()<\/td>\n<td>Returns True if a specified class is a subclass of a specified object<\/td>\n<\/tr>\n<tr>\n<td>iter()<\/td>\n<td>Returns an iterator object<\/td>\n<\/tr>\n<tr>\n<td>len()<\/td>\n<td>Returns the length of an object<\/td>\n<\/tr>\n<tr>\n<td>list()<\/td>\n<td>Returns a list<\/td>\n<\/tr>\n<tr>\n<td>locals()<\/td>\n<td>Returns an updated dictionary of the current local symbol table<\/td>\n<\/tr>\n<tr>\n<td>map()<\/td>\n<td>Returns the specified iterator with the specified function applied to each item<\/td>\n<\/tr>\n<tr>\n<td>max()<\/td>\n<td>Returns the largest item in an iterable<\/td>\n<\/tr>\n<tr>\n<td>memoryview()<\/td>\n<td>Returns a memory view object<\/td>\n<\/tr>\n<tr>\n<td>min()<\/td>\n<td>Returns the smallest item in an iterable<\/td>\n<\/tr>\n<tr>\n<td>next()<\/td>\n<td>Returns the next item in an iterable<\/td>\n<\/tr>\n<tr>\n<td>object()<\/td>\n<td>Returns a new object<\/td>\n<\/tr>\n<tr>\n<td>oct()<\/td>\n<td>Converts a number into an octal<\/td>\n<\/tr>\n<tr>\n<td>open()<\/td>\n<td>Opens a file and returns a file object<\/td>\n<\/tr>\n<tr>\n<td>ord()<\/td>\n<td>Convert an integer representing the Unicode of the specified character<\/td>\n<\/tr>\n<tr>\n<td>pow()<\/td>\n<td>Returns the value of x to the power of y<\/td>\n<\/tr>\n<tr>\n<td>print()<\/td>\n<td>Prints to the standard output device<\/td>\n<\/tr>\n<tr>\n<td>property()<\/td>\n<td>Gets, sets, deletes a property<\/td>\n<\/tr>\n<tr>\n<td>range()<\/td>\n<td>Returns a sequence of numbers, starting from 0 and increments by 1 (by default)<\/td>\n<\/tr>\n<tr>\n<td>repr()<\/td>\n<td>Returns a readable version of an object<\/td>\n<\/tr>\n<tr>\n<td>reversed()<\/td>\n<td>Returns a reversed iterator<\/td>\n<\/tr>\n<tr>\n<td>round()<\/td>\n<td>Rounds a numbers<\/td>\n<\/tr>\n<tr>\n<td>set()<\/td>\n<td>Returns a new set object<\/td>\n<\/tr>\n<tr>\n<td>setattr()<\/td>\n<td>Sets an attribute (property\/method) of an object<\/td>\n<\/tr>\n<tr>\n<td>slice()<\/td>\n<td>Returns a slice object<\/td>\n<\/tr>\n<tr>\n<td>sorted()<\/td>\n<td>Returns a sorted list<\/td>\n<\/tr>\n<tr>\n<td>staticmethod()<\/td>\n<td>Converts a method into a static method<\/td>\n<\/tr>\n<tr>\n<td>str()<\/td>\n<td>Returns a string object<\/td>\n<\/tr>\n<tr>\n<td>sum()<\/td>\n<td>Sums the items of an iterator<\/td>\n<\/tr>\n<tr>\n<td>super()<\/td>\n<td>Returns an object that represents the parent class<\/td>\n<\/tr>\n<tr>\n<td>tuple()<\/td>\n<td>Returns a tuple<\/td>\n<\/tr>\n<tr>\n<td>type()<\/td>\n<td>Returns the type of an object<\/td>\n<\/tr>\n<tr>\n<td>vars()<\/td>\n<td>Returns the __dict__ property of an object<\/td>\n<\/tr>\n<tr>\n<td>zip()<\/td>\n<td>Returns an iterator, from two or more iterators<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Python has a set of built-in methods that you can use on strings.<\/p>\n<div class=\"w3-panel w3-note\">\n<p><strong>Note:<\/strong>\u00a0All string methods returns new values. They do not change the original string.<\/p>\n<p><a href=\"https:\/\/entri.app\/course\/python-programming-course\/\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-25494071 size-full\" src=\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2021\/10\/Web-Development-Rectangle.png\" alt=\"\" width=\"970\" height=\"250\" srcset=\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2021\/10\/Web-Development-Rectangle.png 970w, https:\/\/entri.app\/blog\/wp-content\/uploads\/2021\/10\/Web-Development-Rectangle-300x77.png 300w, https:\/\/entri.app\/blog\/wp-content\/uploads\/2021\/10\/Web-Development-Rectangle-768x198.png 768w, https:\/\/entri.app\/blog\/wp-content\/uploads\/2021\/10\/Web-Development-Rectangle-750x193.png 750w\" sizes=\"auto, (max-width: 970px) 100vw, 970px\" \/><\/a><\/p>\n<\/div>\n<table class=\"ws-table-all notranslate\">\n<tbody>\n<tr>\n<th>Method<\/th>\n<th>Description<\/th>\n<\/tr>\n<tr>\n<td>capitalize()<\/td>\n<td>Converts the first character to upper case<\/td>\n<\/tr>\n<tr>\n<td>casefold()<\/td>\n<td>Converts string into lower case<\/td>\n<\/tr>\n<tr>\n<td>center()<\/td>\n<td>Returns a centered string<\/td>\n<\/tr>\n<tr>\n<td>count()<\/td>\n<td>Returns the number of times a specified value occurs in a string<\/td>\n<\/tr>\n<tr>\n<td>encode()<\/td>\n<td>Returns an encoded version of the string<\/td>\n<\/tr>\n<tr>\n<td>endswith()<\/td>\n<td>Returns true if the string ends with the specified value<\/td>\n<\/tr>\n<tr>\n<td>expandtabs()<\/td>\n<td>Sets the tab size of the string<\/td>\n<\/tr>\n<tr>\n<td>find()<\/td>\n<td>Searches the string for a specified value and returns the position of where it was found<\/td>\n<\/tr>\n<tr>\n<td>format()<\/td>\n<td>Formats specified values in a string<\/td>\n<\/tr>\n<tr>\n<td>format_map()<\/td>\n<td>Formats specified values in a string<\/td>\n<\/tr>\n<tr>\n<td>index()<\/td>\n<td>Searches the string for a specified value and returns the position of where it was found<\/td>\n<\/tr>\n<tr>\n<td>isalnum()<\/td>\n<td>Returns True if all characters in the string are alphanumeric<\/td>\n<\/tr>\n<tr>\n<td>isalpha()<\/td>\n<td>Returns True if all characters in the string are in the alphabet<\/td>\n<\/tr>\n<tr>\n<td>isascii()<\/td>\n<td>Returns True if all characters in the string are ascii characters<\/td>\n<\/tr>\n<tr>\n<td>isdecimal()<\/td>\n<td>Returns True if all characters in the string are decimals<\/td>\n<\/tr>\n<tr>\n<td>isdigit()<\/td>\n<td>Returns True if all characters in the string are digits<\/td>\n<\/tr>\n<tr>\n<td>isidentifier()<\/td>\n<td>Returns True if the string is an identifier<\/td>\n<\/tr>\n<tr>\n<td>islower()<\/td>\n<td>Returns True if all characters in the string are lower case<\/td>\n<\/tr>\n<tr>\n<td>isnumeric()<\/td>\n<td>Returns True if all characters in the string are numeric<\/td>\n<\/tr>\n<tr>\n<td>isprintable()<\/td>\n<td>Returns True if all characters in the string are printable<\/td>\n<\/tr>\n<tr>\n<td>isspace()<\/td>\n<td>Returns True if all characters in the string are whitespaces<\/td>\n<\/tr>\n<tr>\n<td>istitle()<\/td>\n<td>Returns True if the string follows the rules of a title<\/td>\n<\/tr>\n<tr>\n<td>isupper()<\/td>\n<td>Returns True if all characters in the string are upper case<\/td>\n<\/tr>\n<tr>\n<td>join()<\/td>\n<td>Converts the elements of an iterable into a string<\/td>\n<\/tr>\n<tr>\n<td>ljust()<\/td>\n<td>Returns a left justified version of the string<\/td>\n<\/tr>\n<tr>\n<td>lower()<\/td>\n<td>Converts a string into lower case<\/td>\n<\/tr>\n<tr>\n<td>lstrip()<\/td>\n<td>Returns a left trim version of the string<\/td>\n<\/tr>\n<tr>\n<td>maketrans()<\/td>\n<td>Returns a translation table to be used in translations<\/td>\n<\/tr>\n<tr>\n<td>partition()<\/td>\n<td>Returns a tuple where the string is parted into three parts<\/td>\n<\/tr>\n<tr>\n<td>replace()<\/td>\n<td>Returns a string where a specified value is replaced with a specified value<\/td>\n<\/tr>\n<tr>\n<td>rfind()<\/td>\n<td>Searches the string for a specified value and returns the last position of where it was found<\/td>\n<\/tr>\n<tr>\n<td>rindex()<\/td>\n<td>Searches the string for a specified value and returns the last position of where it was found<\/td>\n<\/tr>\n<tr>\n<td>rjust()<\/td>\n<td>Returns a right justified version of the string<\/td>\n<\/tr>\n<tr>\n<td>rpartition()<\/td>\n<td>Returns a tuple where the string is parted into three parts<\/td>\n<\/tr>\n<tr>\n<td>rsplit()<\/td>\n<td>Splits the string at the specified separator, and returns a list<\/td>\n<\/tr>\n<tr>\n<td>rstrip()<\/td>\n<td>Returns a right trim version of the string<\/td>\n<\/tr>\n<tr>\n<td>split()<\/td>\n<td>Splits the string at the specified separator, and returns a list<\/td>\n<\/tr>\n<tr>\n<td>splitlines()<\/td>\n<td>Splits the string at line breaks and returns a list<\/td>\n<\/tr>\n<tr>\n<td>startswith()<\/td>\n<td>Returns true if the string starts with the specified value<\/td>\n<\/tr>\n<tr>\n<td>strip()<\/td>\n<td>Returns a trimmed version of the string<\/td>\n<\/tr>\n<tr>\n<td>swapcase()<\/td>\n<td>Swaps cases, lower case becomes upper case and vice versa<\/td>\n<\/tr>\n<tr>\n<td>title()<\/td>\n<td>Converts the first character of each word to upper case<\/td>\n<\/tr>\n<tr>\n<td>translate()<\/td>\n<td>Returns a translated string<\/td>\n<\/tr>\n<tr>\n<td>upper()<\/td>\n<td>Converts a string into upper case<\/td>\n<\/tr>\n<tr>\n<td>zfill()<\/td>\n<td>Fills the string with a specified number of 0 values at the beginning<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div class=\"LinkedBlock\">\n<p style=\"text-align: center;\"><strong><a class=\"in-cell-link\" href=\"https:\/\/entri.app\/course\/python-programming-course\/\" target=\"_blank\" rel=\"noopener\">&#8220;Experience the power of our web development course with a free demo &#8211; enroll now!&#8221;<\/a><\/strong><\/p>\n<h3><strong><span style=\"color: #1d1f20; font-size: 1.953em;\">Python Built-in Functions explained<\/span><\/strong><\/h3>\n<\/div>\n<div class=\"LinkedBlock\">\n<p>Here is the Python built-in functions list.<\/p>\n<div class=\"vdo-ads-wrapper ad-cls-block-580x250\">\n<div id=\"bsa-zone_1574377548719-4_123456\" class=\"bsa-ad\" data-google-query-id=\"CKrM9q3msvcCFYnTUQod_xMI9w\">\n<div id=\"google_ads_iframe_\/8691100\/Positronx_S2S_RightRail_3_0__container__\"><\/div>\n<\/div>\n<\/div>\n<p><strong>abs( )<\/strong><br \/>\nThe abs() function in Python get the positive (absolute) value of a numerical value.<\/p>\n<div class=\"code-toolbar\">\n<pre class=\" language-python\"><code class=\" language-python\">x <span class=\"token operator\">=<\/span> <span class=\"token builtin\">abs<\/span><span class=\"token punctuation\">(<\/span><span class=\"token operator\">-<\/span><span class=\"token number\">7.25<\/span><span class=\"token punctuation\">)<\/span>\r\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>x<span class=\"token punctuation\">)<\/span>\r\n<span class=\"token comment\"># output = 7.25<\/span><\/code><\/pre>\n<div class=\"toolbar\">\n<div class=\"toolbar-item\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"LinkedBlock\"><strong>all()<\/strong><br \/>\nThe all() function in python checks if all the items of an iterable are true, else it returns False. The all() method also returns true if the iterable object is empty.<\/p>\n<div class=\"vdo-ads-wrapper ad-cls-block-580x250\">\n<div id=\"bsa-zone_1574377501661-3_123456\" class=\"bsa-ad\" data-google-query-id=\"COa39q3msvcCFdvl5godasANUA\">\n<div id=\"google_ads_iframe_\/8691100\/Positronx_S2S_RightRail_2_0__container__\"><\/div>\n<\/div>\n<\/div>\n<div class=\"code-toolbar\">\n<pre class=\" language-python\"><code class=\" language-python\"><span class=\"token builtin\">list<\/span> <span class=\"token operator\">=<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token number\">0<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">2<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">2<\/span><span class=\"token punctuation\">]<\/span>\r\na <span class=\"token operator\">=<\/span> <span class=\"token builtin\">all<\/span><span class=\"token punctuation\">(<\/span><span class=\"token builtin\">list<\/span><span class=\"token punctuation\">)<\/span>\r\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>a<span class=\"token punctuation\">)<\/span>\r\n<span class=\"token comment\"># output = False<\/span><\/code><\/pre>\n<div class=\"toolbar\">\n<div class=\"toolbar-item\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"LinkedBlock\"><strong>any()<\/strong><br \/>\nThe any() function returns True if any item in an iterable is true, else it returns False. This method returns False if iterable is empty.<\/p>\n<div class=\"code-toolbar\">\n<pre class=\" language-python\"><code class=\" language-python\"><span class=\"token builtin\">tuple<\/span> <span class=\"token operator\">=<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token number\">0<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">1<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token boolean\">False<\/span><span class=\"token punctuation\">)<\/span>\r\na <span class=\"token operator\">=<\/span> <span class=\"token builtin\">any<\/span><span class=\"token punctuation\">(<\/span><span class=\"token builtin\">tuple<\/span><span class=\"token punctuation\">)<\/span>\r\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>a<span class=\"token punctuation\">)<\/span>\r\n<span class=\"token comment\"># output = True<\/span><\/code><\/pre>\n<\/div>\n<\/div>\n<div><\/div>\n<div class=\"LinkedBlock\"><strong>ascii()<\/strong><br \/>\nThe ascii() function returns a readable representation of an object (Strings, Tuples, Lists, etc.) It replaces non-ascii characters with escape characters.<\/p>\n<div class=\"custom-advert ad-cls-block-300x250\">\n<div id=\"bsa-zone_1574377588455-0_123456\" class=\"bsa-ad\" data-google-query-id=\"CKfi963msvcCFcLH1Qod6jMKzQ\">\n<div id=\"google_ads_iframe_\/8691100\/Positronx_S2S_InContent_Leaderboard_1_0__container__\"><\/div>\n<\/div>\n<\/div>\n<div class=\"code-toolbar\">\n<pre class=\" language-python\"><code class=\" language-python\">a <span class=\"token operator\">=<\/span> <span class=\"token builtin\">ascii<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">\"Mostly S\u00e5ne\"<\/span><span class=\"token punctuation\">)<\/span>\r\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>a<span class=\"token punctuation\">)<\/span>\r\n<span class=\"token comment\"># output = 'Mostly S\\xe5ne'<\/span><\/code><\/pre>\n<div class=\"toolbar\">\n<div class=\"toolbar-item\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"LinkedBlock\"><strong>bin()<\/strong><br \/>\nThe bin() function converts an integer (number) to a binary string. It prefixed with 0b.<\/p>\n<div class=\"code-toolbar\">\n<pre class=\" language-python\"><code class=\" language-python\">a <span class=\"token operator\">=<\/span> <span class=\"token builtin\">bin<\/span><span class=\"token punctuation\">(<\/span><span class=\"token number\">30<\/span><span class=\"token punctuation\">)<\/span>\r\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>a<span class=\"token punctuation\">)<\/span>\r\n<span class=\"token comment\"># output = 0b11110<\/span><\/code><\/pre>\n<\/div>\n<\/div>\n<div><\/div>\n<div class=\"LinkedBlock\"><strong>bool()<\/strong><br \/>\nThe bool() function is very helpful in converting an object to a Boolean value. This function returns True, except the object is false, empty, 0 or none.<\/p>\n<div class=\"code-toolbar\">\n<pre class=\" language-python\"><code class=\" language-python\">a <span class=\"token operator\">=<\/span> <span class=\"token builtin\">bool<\/span><span class=\"token punctuation\">(<\/span><span class=\"token number\">22<\/span><span class=\"token punctuation\">)<\/span>\r\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>a<span class=\"token punctuation\">)<\/span>\r\n<span class=\"token comment\"># output = True<\/span><\/code><\/pre>\n<div class=\"toolbar\">\n<div class=\"toolbar-item\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"LinkedBlock\"><strong>bytearray()<\/strong><br \/>\nThe bytearray() function is used converts an object into bytearray objects.<\/p>\n<div class=\"code-toolbar\">\n<pre class=\" language-python\"><code class=\" language-python\">a <span class=\"token operator\">=<\/span> <span class=\"token builtin\">bytearray<\/span><span class=\"token punctuation\">(<\/span><span class=\"token number\">22<\/span><span class=\"token punctuation\">)<\/span>\r\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>a<span class=\"token punctuation\">)<\/span>\r\n<span class=\"token comment\"># output = bytearray(b'\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00')<\/span><\/code><\/pre>\n<div class=\"toolbar\">\n<div class=\"toolbar-item\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"LinkedBlock\"><strong>bytes()<\/strong><br \/>\nThe bytes() function is used to convert objects into bytes object.<\/p>\n<div class=\"code-toolbar\">\n<pre class=\" language-python\"><code class=\" language-python\">a <span class=\"token operator\">=<\/span> <span class=\"token builtin\">bytes<\/span><span class=\"token punctuation\">(<\/span><span class=\"token number\">22<\/span><span class=\"token punctuation\">)<\/span>\r\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>a<span class=\"token punctuation\">)<\/span>\r\n<span class=\"token comment\"># output: b'\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00'<\/span><\/code><\/pre>\n<div class=\"toolbar-item\">\n<h4 style=\"text-align: center;\"><\/h4>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"LinkedBlock\"><strong>callable()<\/strong><br \/>\nThe callable() function gets True, and if the passed object is callable, else it returns false.<\/p>\n<div class=\"code-toolbar\">\n<pre class=\" language-python\"><code class=\" language-python\"><span class=\"token keyword\">def<\/span> <span class=\"token function\">a<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span>\r\n  b <span class=\"token operator\">=<\/span> <span class=\"token number\">5<\/span>\r\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token builtin\">callable<\/span><span class=\"token punctuation\">(<\/span>a<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span>\r\n<span class=\"token comment\"># output = True<\/span><\/code><\/pre>\n<div class=\"toolbar\">\n<div class=\"toolbar-item\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"LinkedBlock\"><strong>chr()<\/strong><br \/>\nThe chr() function gets the string character, which represents the defined unicode.<\/p>\n<div class=\"code-toolbar\">\n<pre class=\" language-python\"><code class=\" language-python\">a <span class=\"token operator\">=<\/span> <span class=\"token builtin\">chr<\/span><span class=\"token punctuation\">(<\/span><span class=\"token number\">87<\/span><span class=\"token punctuation\">)<\/span>\r\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>a<span class=\"token punctuation\">)<\/span>\r\n<span class=\"token comment\"># output: W<\/span><\/code><\/pre>\n<div class=\"toolbar\">\n<div class=\"toolbar-item\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"LinkedBlock\"><strong>compile()<\/strong><br \/>\nThe compile() function compiles the sources into a code.<\/p>\n<div class=\"code-toolbar\">\n<pre class=\" language-python\"><code class=\" language-python\">a <span class=\"token operator\">=<\/span> <span class=\"token builtin\">compile<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">'print(45)'<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">'test'<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">'eval'<\/span><span class=\"token punctuation\">)<\/span>\r\n<span class=\"token keyword\">exec<\/span><span class=\"token punctuation\">(<\/span>a<span class=\"token punctuation\">)<\/span>\r\n<span class=\"token comment\"># output: 45<\/span><\/code><\/pre>\n<div class=\"toolbar\">\n<div class=\"toolbar-item\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"LinkedBlock\"><strong>complex()<\/strong><br \/>\nThe complex() function forms a complex number | convert string | number to complex number.<\/p>\n<div class=\"code-toolbar\">\n<pre class=\" language-python\"><code class=\" language-python\">a <span class=\"token operator\">=<\/span> <span class=\"token builtin\">complex<\/span><span class=\"token punctuation\">(<\/span><span class=\"token number\">2<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">7<\/span><span class=\"token punctuation\">)<\/span>\r\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>a<span class=\"token punctuation\">)<\/span>\r\n<span class=\"token comment\"># output: (2+7j)<\/span><\/code><\/pre>\n<div class=\"toolbar\">\n<p style=\"text-align: center;\"><strong><a class=\"in-cell-link\" href=\"https:\/\/entri.app\/course\/python-programming-course\/\" target=\"_blank\" rel=\"noopener\">&#8220;Get hands-on with our python course &#8211; sign up for a free demo!&#8221;<\/a><\/strong><\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"LinkedBlock\"><strong>delattr()<\/strong><br \/>\nThe delattr() function help us to remove the defined attribute from the declared object.<\/p>\n<div class=\"code-toolbar\">\n<pre class=\" language-python\"><code class=\" language-python\"><span class=\"token keyword\">class<\/span> <span class=\"token class-name\">User<\/span><span class=\"token punctuation\">:<\/span>\r\n  name <span class=\"token operator\">=<\/span> <span class=\"token string\">\"Jaydon\"<\/span>\r\n  mob <span class=\"token operator\">=<\/span> <span class=\"token number\">182182922<\/span>\r\n  country <span class=\"token operator\">=<\/span> <span class=\"token string\">\"Canada\"<\/span>\r\n<span class=\"token builtin\">delattr<\/span><span class=\"token punctuation\">(<\/span>Person<span class=\"token punctuation\">,<\/span> <span class=\"token string\">'age'<\/span><span class=\"token punctuation\">)<\/span><\/code><\/pre>\n<\/div>\n<\/div>\n<div><\/div>\n<div class=\"LinkedBlock\"><strong>dict()<\/strong><br \/>\nThe dict() function form a new dictionary.<\/p>\n<div class=\"code-toolbar\">\n<pre class=\" language-python\"><code class=\" language-python\">a <span class=\"token operator\">=<\/span> <span class=\"token builtin\">dict<\/span><span class=\"token punctuation\">(<\/span>name <span class=\"token operator\">=<\/span> <span class=\"token string\">\"Jaydon\"<\/span><span class=\"token punctuation\">,<\/span> mob <span class=\"token operator\">=<\/span> <span class=\"token number\">182182922<\/span><span class=\"token punctuation\">,<\/span> country <span class=\"token operator\">=<\/span> <span class=\"token string\">\"Canada\"<\/span><span class=\"token punctuation\">)<\/span>\r\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>a<span class=\"token punctuation\">)<\/span>\r\n<span class=\"token comment\"># output = {'name': 'Jaydon', 'mob': 182182922, 'country': 'Canada'}<\/span><\/code><\/pre>\n<div class=\"toolbar\">\n<div class=\"toolbar-item\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"LinkedBlock\"><strong>dir()<\/strong><br \/>\nThe dir() function gets all the properties and methods of the declared object, and It doesn\u2019t get the values. It even returns the built-in properties which are default for all object.<\/p>\n<div class=\"code-toolbar\">\n<pre class=\" language-python\"><code class=\" language-python\"><span class=\"token keyword\">class<\/span> <span class=\"token class-name\">User<\/span><span class=\"token punctuation\">:<\/span>\r\n  name <span class=\"token operator\">=<\/span> <span class=\"token string\">\"Jaydon\"<\/span>\r\n  mob <span class=\"token operator\">=<\/span> <span class=\"token number\">182182922<\/span>\r\n  country <span class=\"token operator\">=<\/span> <span class=\"token string\">\"Canada\"<\/span>\r\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token builtin\">dir<\/span><span class=\"token punctuation\">(<\/span>User<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span>\r\n<span class=\"token comment\"># output = ['__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', 'country', 'mob', 'name']<\/span><\/code><\/pre>\n<div class=\"toolbar\">\n<div class=\"toolbar-item\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"LinkedBlock\"><strong>divmod()<\/strong><br \/>\nGets a tuple including the quotient and remainder when argument1 is divided by argument2.<\/p>\n<div class=\"code-toolbar\">\n<pre class=\" language-python\"><code class=\" language-python\">a <span class=\"token operator\">=<\/span> <span class=\"token builtin\">divmod<\/span><span class=\"token punctuation\">(<\/span><span class=\"token number\">6<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">2<\/span><span class=\"token punctuation\">)<\/span>\r\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>a<span class=\"token punctuation\">)<\/span>\r\n<span class=\"token comment\"># output = (3, 0)<\/span><\/code><\/pre>\n<div class=\"toolbar\">\n<div class=\"toolbar-item\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"LinkedBlock\"><strong>enumerate( )<\/strong><br \/>\nIt gets an enumerate object for a sequence or iterator.<\/p>\n<div class=\"code-toolbar\">\n<pre class=\" language-python\"><code class=\" language-python\">a <span class=\"token operator\">=<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token string\">'john'<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">'ann'<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">'sia'<\/span><span class=\"token punctuation\">)<\/span>\r\nb <span class=\"token operator\">=<\/span> <span class=\"token builtin\">enumerate<\/span><span class=\"token punctuation\">(<\/span>a<span class=\"token punctuation\">)<\/span>\r\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>b<span class=\"token punctuation\">)<\/span>\r\n<span class=\"token comment\"># output = &lt;enumerate object at 0x7f802a241a20&gt;<\/span><\/code><\/pre>\n<div class=\"toolbar\">\n<div class=\"toolbar-item\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"LinkedBlock\"><strong>eval()<\/strong><br \/>\nAllows a legal python program to run python code.<\/p>\n<div class=\"code-toolbar\">\n<pre class=\" language-python\"><code class=\" language-python\">a <span class=\"token operator\">=<\/span> <span class=\"token string\">'print(28)'<\/span>\r\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token builtin\">eval<\/span><span class=\"token punctuation\">(<\/span>a<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><\/code><\/pre>\n<div class=\"toolbar\">\n<div class=\"toolbar-item\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"LinkedBlock\"><strong>exec()<\/strong><br \/>\nThe exec() function executes dynamic python code.<\/p>\n<div class=\"code-toolbar\">\n<pre class=\" language-python\"><code class=\" language-python\">a <span class=\"token operator\">=<\/span> <span class=\"token string\">'name = \"John\"\\nprint(name)'<\/span>\r\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token keyword\">exec<\/span><span class=\"token punctuation\">(<\/span>a<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><\/code><\/pre>\n<div>\n<h4 style=\"text-align: center;\"><\/h4>\n<\/div>\n<div class=\"toolbar\">\n<div class=\"toolbar-item\"><strong>filter()<\/strong><br \/>\nThe filter() function filters the sequence via a function, this function checks each elements in the iterator are true or not.<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"LinkedBlock\">\n<div class=\"code-toolbar\">\n<pre class=\" language-python\"><code class=\" language-python\">score <span class=\"token operator\">=<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token number\">15<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">10<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">20<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">17<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">26<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">42<\/span><span class=\"token punctuation\">]<\/span>\r\n<span class=\"token keyword\">def<\/span> <span class=\"token function\">customFunc<\/span><span class=\"token punctuation\">(<\/span>a<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span>\r\n  <span class=\"token keyword\">if<\/span> a <span class=\"token operator\">&lt;<\/span> <span class=\"token number\">20<\/span><span class=\"token punctuation\">:<\/span>\r\n    <span class=\"token keyword\">return<\/span> <span class=\"token boolean\">False<\/span>\r\n  <span class=\"token keyword\">else<\/span><span class=\"token punctuation\">:<\/span>\r\n    <span class=\"token keyword\">return<\/span> <span class=\"token boolean\">True<\/span>\r\nplayers <span class=\"token operator\">=<\/span> <span class=\"token builtin\">filter<\/span><span class=\"token punctuation\">(<\/span>customFunc<span class=\"token punctuation\">,<\/span> score<span class=\"token punctuation\">)<\/span>\r\n<span class=\"token keyword\">for<\/span> a <span class=\"token keyword\">in<\/span> players<span class=\"token punctuation\">:<\/span>\r\n  <span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>a<span class=\"token punctuation\">)<\/span><\/code><\/pre>\n<div class=\"toolbar\">\n<div class=\"toolbar-item\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"LinkedBlock\"><strong>float( )<\/strong><br \/>\nThe float() function transforms a numerical value to floating point.<\/p>\n<div class=\"code-toolbar\">\n<pre class=\" language-python\"><code class=\" language-python\">a <span class=\"token operator\">=<\/span> <span class=\"token builtin\">float<\/span><span class=\"token punctuation\">(<\/span><span class=\"token number\">5<\/span><span class=\"token punctuation\">)<\/span>\r\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>a<span class=\"token punctuation\">)<\/span><\/code><\/pre>\n<div class=\"toolbar\">\n<div class=\"toolbar-item\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"LinkedBlock\"><strong>format()<\/strong><br \/>\nThe format() function transforms the defined value into a specified format.<\/p>\n<div class=\"code-toolbar\">\n<pre class=\" language-python\"><code class=\" language-python\">a <span class=\"token operator\">=<\/span> <span class=\"token builtin\">format<\/span><span class=\"token punctuation\">(<\/span><span class=\"token number\">1.5<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">'%'<\/span><span class=\"token punctuation\">)<\/span>\r\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>a<span class=\"token punctuation\">)<\/span><\/code><\/pre>\n<div class=\"toolbar\">\n<div class=\"toolbar-item\">\n<p style=\"text-align: center;\"><strong><a class=\"in-cell-link\" href=\"https:\/\/entri.app\/course\/python-programming-course\/\" target=\"_blank\" rel=\"noopener\">&#8220;Ready to take your python skills to the next level? Sign up for a free demo today!&#8221;<\/a><\/strong><\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"LinkedBlock\"><strong>frozenset()<\/strong><br \/>\nThe frozenset() function gets the unchangeable object.<\/p>\n<div class=\"code-toolbar\">\n<pre class=\" language-python\"><code class=\" language-python\"><span class=\"token builtin\">list<\/span> <span class=\"token operator\">=<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token string\">'Avengers'<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">'Wonder women'<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">'Batmen'<\/span><span class=\"token punctuation\">]<\/span>\r\na <span class=\"token operator\">=<\/span> <span class=\"token builtin\">frozenset<\/span><span class=\"token punctuation\">(<\/span><span class=\"token builtin\">list<\/span><span class=\"token punctuation\">)<\/span>\r\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>a<span class=\"token punctuation\">)<\/span><\/code><\/pre>\n<div class=\"toolbar\">\n<div class=\"toolbar-item\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"LinkedBlock\"><strong>getattr()<\/strong><br \/>\nThis function gets the value of the defined attribute from the particular object.<\/p>\n<div class=\"code-toolbar\">\n<pre class=\" language-python\"><code class=\" language-python\"><span class=\"token keyword\">class<\/span> <span class=\"token class-name\">Student<\/span><span class=\"token punctuation\">:<\/span>\r\n  name <span class=\"token operator\">=<\/span> <span class=\"token string\">\"Ann\"<\/span>\r\n  age <span class=\"token operator\">=<\/span> <span class=\"token number\">28<\/span>\r\n  country <span class=\"token operator\">=<\/span> <span class=\"token string\">\"USA\"<\/span>\r\nx <span class=\"token operator\">=<\/span> <span class=\"token builtin\">getattr<\/span><span class=\"token punctuation\">(<\/span>Student<span class=\"token punctuation\">,<\/span> <span class=\"token string\">'age'<\/span><span class=\"token punctuation\">)<\/span>\r\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>x<span class=\"token punctuation\">)<\/span>\r\n<span class=\"token comment\"># output = 28<\/span><\/code><\/pre>\n<div class=\"toolbar\">\n<div class=\"toolbar-item\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"LinkedBlock\"><strong>globals( )<\/strong><br \/>\nThis function gets the dictionary from the current global symbol table.<\/p>\n<div class=\"code-toolbar\">\n<pre class=\" language-python\"><code class=\" language-python\">a <span class=\"token operator\">=<\/span> <span class=\"token builtin\">globals<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span>\r\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>a<span class=\"token punctuation\">)<\/span><\/code><\/pre>\n<div class=\"toolbar\">\n<div class=\"toolbar-item\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"LinkedBlock\"><strong>hasattr()<\/strong><br \/>\nThis function return True, if the defined object has the mentioned attribute, else it will return False.<\/p>\n<div class=\"code-toolbar\">\n<pre class=\" language-python\"><code class=\" language-python\"><span class=\"token keyword\">class<\/span> <span class=\"token class-name\">Student<\/span><span class=\"token punctuation\">:<\/span>\r\n  name <span class=\"token operator\">=<\/span> <span class=\"token string\">\"Ann\"<\/span>\r\n  age <span class=\"token operator\">=<\/span> <span class=\"token number\">28<\/span>\r\n  country <span class=\"token operator\">=<\/span> <span class=\"token string\">\"USA\"<\/span>\r\nx <span class=\"token operator\">=<\/span> <span class=\"token builtin\">hasattr<\/span><span class=\"token punctuation\">(<\/span>Student<span class=\"token punctuation\">,<\/span> <span class=\"token string\">'age'<\/span><span class=\"token punctuation\">)<\/span>\r\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>x<span class=\"token punctuation\">)<\/span>\r\n<span class=\"token comment\"># output = True<\/span><\/code><\/pre>\n<div class=\"toolbar\">\n<div class=\"toolbar-item\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"LinkedBlock\"><strong>hex()<\/strong><br \/>\nThis method converts the numerical value into a hexadecimal value. The returned value comes with the 0x prefix.<\/p>\n<div class=\"code-toolbar\">\n<pre class=\" language-python\"><code class=\" language-python\">a <span class=\"token operator\">=<\/span> <span class=\"token builtin\">hex<\/span><span class=\"token punctuation\">(<\/span><span class=\"token number\">225<\/span><span class=\"token punctuation\">)<\/span>\r\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>a<span class=\"token punctuation\">)<\/span>\r\n<span class=\"token comment\"># output = 0xe1<\/span><\/code><\/pre>\n<div class=\"toolbar\">\n<div class=\"toolbar-item\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"LinkedBlock\"><strong>id()<\/strong><br \/>\nThis method gets a unique id for the defined object, Python provides a unique id to all the objects.<\/p>\n<div class=\"code-toolbar\">\n<pre class=\" language-python\"><code class=\" language-python\">a <span class=\"token operator\">=<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token string\">'oppo'<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">'iPhone'<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">'nokia'<\/span><span class=\"token punctuation\">)<\/span>\r\nb <span class=\"token operator\">=<\/span> <span class=\"token builtin\">id<\/span><span class=\"token punctuation\">(<\/span>a<span class=\"token punctuation\">)<\/span>\r\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>b<span class=\"token punctuation\">)<\/span>\r\n<span class=\"token comment\"># output = 140390324530704<\/span><\/code><\/pre>\n<div class=\"toolbar\">\n<div class=\"toolbar-item\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"LinkedBlock\"><strong>input()<\/strong><br \/>\nA user can define the value using the input() function.<\/p>\n<div class=\"code-toolbar\">\n<pre class=\" language-python\"><code class=\" language-python\"><span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">'What is your name:'<\/span><span class=\"token punctuation\">)<\/span>\r\na <span class=\"token operator\">=<\/span> <span class=\"token builtin\">input<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span>\r\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">'Hi, '<\/span> <span class=\"token operator\">+<\/span> a<span class=\"token punctuation\">)<\/span>\r\n<span class=\"token comment\"># output = Enter your name:<\/span>\r\n<span class=\"token comment\"># Digamber<\/span>\r\n<span class=\"token comment\"># Hi, Digamber<\/span><\/code><\/pre>\n<div class=\"toolbar\">\n<div class=\"toolbar-item\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"LinkedBlock\"><strong>int()<\/strong><br \/>\nThis function transforms the mentioned value into a numerical value.<\/p>\n<div class=\"code-toolbar\">\n<pre class=\" language-python\"><code class=\" language-python\">a <span class=\"token operator\">=<\/span> <span class=\"token builtin\">int<\/span><span class=\"token punctuation\">(<\/span><span class=\"token number\">2.9<\/span><span class=\"token punctuation\">)<\/span>\r\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>a<span class=\"token punctuation\">)<\/span>\r\n<span class=\"token comment\"># output = 2<\/span><\/code><\/pre>\n<div class=\"toolbar\">\n<div class=\"toolbar-item\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"LinkedBlock\"><strong>issubclass()<\/strong><br \/>\nReturns true, if the defined object is a subclass of the defined object, else it will return false.<\/p>\n<div class=\"code-toolbar\">\n<pre class=\" language-python\"><code class=\" language-python\"><span class=\"token keyword\">class<\/span> <span class=\"token class-name\">speed<\/span><span class=\"token punctuation\">:<\/span>\r\n  kmph <span class=\"token operator\">=<\/span> <span class=\"token number\">136<\/span>\r\n<span class=\"token keyword\">class<\/span> <span class=\"token class-name\">car<\/span><span class=\"token punctuation\">(<\/span>speed<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span>\r\n  name <span class=\"token operator\">=<\/span> <span class=\"token string\">\"BMW\"<\/span>\r\n  speed <span class=\"token operator\">=<\/span> speed\r\nx <span class=\"token operator\">=<\/span> <span class=\"token builtin\">issubclass<\/span><span class=\"token punctuation\">(<\/span>car<span class=\"token punctuation\">,<\/span> speed<span class=\"token punctuation\">)<\/span>\r\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>x<span class=\"token punctuation\">)<\/span><\/code><\/pre>\n<div class=\"toolbar\">\n<div class=\"toolbar-item\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"LinkedBlock\"><strong>iter()<\/strong><br \/>\nThis function gets an iterator object.<\/p>\n<div class=\"code-toolbar\">\n<pre class=\" language-python\"><code class=\" language-python\">x <span class=\"token operator\">=<\/span> <span class=\"token builtin\">iter<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">[<\/span><span class=\"token string\">\"john\"<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">\"lisa\"<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">\"maria\"<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">\"ava\"<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">)<\/span>\r\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token builtin\">next<\/span><span class=\"token punctuation\">(<\/span>x<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span>\r\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token builtin\">next<\/span><span class=\"token punctuation\">(<\/span>x<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span>\r\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token builtin\">next<\/span><span class=\"token punctuation\">(<\/span>x<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span>\r\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token builtin\">next<\/span><span class=\"token punctuation\">(<\/span>x<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span>\r\n<span class=\"token comment\"># john<\/span>\r\n<span class=\"token comment\"># lisa<\/span>\r\n<span class=\"token comment\"># maria<\/span>\r\n<span class=\"token comment\"># ava<\/span><\/code><\/pre>\n<div class=\"toolbar\">\n<div class=\"toolbar-item\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"LinkedBlock\"><strong>len()<\/strong><br \/>\nThis method returns the total number of elements in an object if an object is a string type, then the method will return the number of characters from the string.<\/p>\n<div class=\"code-toolbar\">\n<pre class=\" language-python\"><code class=\" language-python\">a <span class=\"token operator\">=<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token string\">\"john\"<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">\"lisa\"<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">\"maria\"<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">\"ava\"<\/span><span class=\"token punctuation\">]<\/span>\r\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token builtin\">len<\/span><span class=\"token punctuation\">(<\/span>a<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span>\r\n<span class=\"token comment\"># 4<\/span><\/code><\/pre>\n<div class=\"toolbar\">\n<div class=\"toolbar-item\">\n<h4 style=\"text-align: center;\"><\/h4>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"LinkedBlock\"><strong>list()<\/strong><br \/>\nThe function generates a list object which is ordered and changeable.<\/div>\n<div class=\"LinkedBlock\">\n<div class=\"code-toolbar\">\n<pre class=\" language-python\"><code class=\" language-python\">a <span class=\"token operator\">=<\/span> <span class=\"token builtin\">list<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">[<\/span><span class=\"token string\">\"john\"<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">\"lisa\"<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">\"maria\"<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">\"ava\"<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">)<\/span>\r\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token builtin\">len<\/span><span class=\"token punctuation\">(<\/span>a<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span>\r\n<span class=\"token comment\"># 4<\/span><\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/section>\n<\/article>\n<\/section>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>What is a function in Python? The most important concept to understand is that in Python, functions are objects. This means a function can return another function and one function can take another function as an argument. We can also define a function within another function. Functions can also be assigned to a variable. What [&hellip;]<\/p>\n","protected":false},"author":111,"featured_media":25522664,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[802,1888],"tags":[],"class_list":["post-25522418","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-articles","category-python-programming"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Most Important Things to Know About Python Functions - Entri Blog<\/title>\n<meta name=\"description\" content=\"In this article , we will learn about the useful list of Python built-in functions and methods. Let\u2019s understand what Python built-in functions are.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/entri.app\/blog\/most-important-things-to-know-about-python-functions\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Most Important Things to Know About Python Functions - Entri Blog\" \/>\n<meta property=\"og:description\" content=\"In this article , we will learn about the useful list of Python built-in functions and methods. Let\u2019s understand what Python built-in functions are.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/entri.app\/blog\/most-important-things-to-know-about-python-functions\/\" \/>\n<meta property=\"og:site_name\" content=\"Entri Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/entri.me\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-04-28T07:41:46+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-05-04T05:21:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/04\/Most-Important-Things-to-Know-About-Python-Functions.png\" \/>\n\t<meta property=\"og:image:width\" content=\"820\" \/>\n\t<meta property=\"og:image:height\" content=\"615\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Feeba Mahin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@entri_app\" \/>\n<meta name=\"twitter:site\" content=\"@entri_app\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Feeba Mahin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"12 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/entri.app\/blog\/most-important-things-to-know-about-python-functions\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/entri.app\/blog\/most-important-things-to-know-about-python-functions\/\"},\"author\":{\"name\":\"Feeba Mahin\",\"@id\":\"https:\/\/entri.app\/blog\/#\/schema\/person\/f036dab84abae3dcc9390a1110d95d36\"},\"headline\":\"Most Important Things to Know About Python Functions\",\"datePublished\":\"2022-04-28T07:41:46+00:00\",\"dateModified\":\"2023-05-04T05:21:06+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/entri.app\/blog\/most-important-things-to-know-about-python-functions\/\"},\"wordCount\":1984,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/entri.app\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/entri.app\/blog\/most-important-things-to-know-about-python-functions\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/04\/Most-Important-Things-to-Know-About-Python-Functions.png\",\"articleSection\":[\"Articles\",\"Python Programming\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/entri.app\/blog\/most-important-things-to-know-about-python-functions\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/entri.app\/blog\/most-important-things-to-know-about-python-functions\/\",\"url\":\"https:\/\/entri.app\/blog\/most-important-things-to-know-about-python-functions\/\",\"name\":\"Most Important Things to Know About Python Functions - Entri Blog\",\"isPartOf\":{\"@id\":\"https:\/\/entri.app\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/entri.app\/blog\/most-important-things-to-know-about-python-functions\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/entri.app\/blog\/most-important-things-to-know-about-python-functions\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/04\/Most-Important-Things-to-Know-About-Python-Functions.png\",\"datePublished\":\"2022-04-28T07:41:46+00:00\",\"dateModified\":\"2023-05-04T05:21:06+00:00\",\"description\":\"In this article , we will learn about the useful list of Python built-in functions and methods. Let\u2019s understand what Python built-in functions are.\",\"breadcrumb\":{\"@id\":\"https:\/\/entri.app\/blog\/most-important-things-to-know-about-python-functions\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/entri.app\/blog\/most-important-things-to-know-about-python-functions\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/entri.app\/blog\/most-important-things-to-know-about-python-functions\/#primaryimage\",\"url\":\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/04\/Most-Important-Things-to-Know-About-Python-Functions.png\",\"contentUrl\":\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/04\/Most-Important-Things-to-Know-About-Python-Functions.png\",\"width\":820,\"height\":615,\"caption\":\"Most Important Things to Know About Python Functions\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/entri.app\/blog\/most-important-things-to-know-about-python-functions\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/entri.app\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python Programming\",\"item\":\"https:\/\/entri.app\/blog\/category\/python-programming\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Most Important Things to Know About Python Functions\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/entri.app\/blog\/#website\",\"url\":\"https:\/\/entri.app\/blog\/\",\"name\":\"Entri Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/entri.app\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/entri.app\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/entri.app\/blog\/#organization\",\"name\":\"Entri App\",\"url\":\"https:\/\/entri.app\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/entri.app\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2019\/10\/Entri-Logo-1.png\",\"contentUrl\":\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2019\/10\/Entri-Logo-1.png\",\"width\":989,\"height\":446,\"caption\":\"Entri App\"},\"image\":{\"@id\":\"https:\/\/entri.app\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/entri.me\/\",\"https:\/\/x.com\/entri_app\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/entri.app\/blog\/#\/schema\/person\/f036dab84abae3dcc9390a1110d95d36\",\"name\":\"Feeba Mahin\",\"url\":\"https:\/\/entri.app\/blog\/author\/feeba123\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Most Important Things to Know About Python Functions - Entri Blog","description":"In this article , we will learn about the useful list of Python built-in functions and methods. Let\u2019s understand what Python built-in functions are.","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:\/\/entri.app\/blog\/most-important-things-to-know-about-python-functions\/","og_locale":"en_US","og_type":"article","og_title":"Most Important Things to Know About Python Functions - Entri Blog","og_description":"In this article , we will learn about the useful list of Python built-in functions and methods. Let\u2019s understand what Python built-in functions are.","og_url":"https:\/\/entri.app\/blog\/most-important-things-to-know-about-python-functions\/","og_site_name":"Entri Blog","article_publisher":"https:\/\/www.facebook.com\/entri.me\/","article_published_time":"2022-04-28T07:41:46+00:00","article_modified_time":"2023-05-04T05:21:06+00:00","og_image":[{"width":820,"height":615,"url":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/04\/Most-Important-Things-to-Know-About-Python-Functions.png","type":"image\/png"}],"author":"Feeba Mahin","twitter_card":"summary_large_image","twitter_creator":"@entri_app","twitter_site":"@entri_app","twitter_misc":{"Written by":"Feeba Mahin","Est. reading time":"12 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/entri.app\/blog\/most-important-things-to-know-about-python-functions\/#article","isPartOf":{"@id":"https:\/\/entri.app\/blog\/most-important-things-to-know-about-python-functions\/"},"author":{"name":"Feeba Mahin","@id":"https:\/\/entri.app\/blog\/#\/schema\/person\/f036dab84abae3dcc9390a1110d95d36"},"headline":"Most Important Things to Know About Python Functions","datePublished":"2022-04-28T07:41:46+00:00","dateModified":"2023-05-04T05:21:06+00:00","mainEntityOfPage":{"@id":"https:\/\/entri.app\/blog\/most-important-things-to-know-about-python-functions\/"},"wordCount":1984,"commentCount":0,"publisher":{"@id":"https:\/\/entri.app\/blog\/#organization"},"image":{"@id":"https:\/\/entri.app\/blog\/most-important-things-to-know-about-python-functions\/#primaryimage"},"thumbnailUrl":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/04\/Most-Important-Things-to-Know-About-Python-Functions.png","articleSection":["Articles","Python Programming"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/entri.app\/blog\/most-important-things-to-know-about-python-functions\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/entri.app\/blog\/most-important-things-to-know-about-python-functions\/","url":"https:\/\/entri.app\/blog\/most-important-things-to-know-about-python-functions\/","name":"Most Important Things to Know About Python Functions - Entri Blog","isPartOf":{"@id":"https:\/\/entri.app\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/entri.app\/blog\/most-important-things-to-know-about-python-functions\/#primaryimage"},"image":{"@id":"https:\/\/entri.app\/blog\/most-important-things-to-know-about-python-functions\/#primaryimage"},"thumbnailUrl":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/04\/Most-Important-Things-to-Know-About-Python-Functions.png","datePublished":"2022-04-28T07:41:46+00:00","dateModified":"2023-05-04T05:21:06+00:00","description":"In this article , we will learn about the useful list of Python built-in functions and methods. Let\u2019s understand what Python built-in functions are.","breadcrumb":{"@id":"https:\/\/entri.app\/blog\/most-important-things-to-know-about-python-functions\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/entri.app\/blog\/most-important-things-to-know-about-python-functions\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/entri.app\/blog\/most-important-things-to-know-about-python-functions\/#primaryimage","url":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/04\/Most-Important-Things-to-Know-About-Python-Functions.png","contentUrl":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/04\/Most-Important-Things-to-Know-About-Python-Functions.png","width":820,"height":615,"caption":"Most Important Things to Know About Python Functions"},{"@type":"BreadcrumbList","@id":"https:\/\/entri.app\/blog\/most-important-things-to-know-about-python-functions\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/entri.app\/blog\/"},{"@type":"ListItem","position":2,"name":"Python Programming","item":"https:\/\/entri.app\/blog\/category\/python-programming\/"},{"@type":"ListItem","position":3,"name":"Most Important Things to Know About Python Functions"}]},{"@type":"WebSite","@id":"https:\/\/entri.app\/blog\/#website","url":"https:\/\/entri.app\/blog\/","name":"Entri Blog","description":"","publisher":{"@id":"https:\/\/entri.app\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/entri.app\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/entri.app\/blog\/#organization","name":"Entri App","url":"https:\/\/entri.app\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/entri.app\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2019\/10\/Entri-Logo-1.png","contentUrl":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2019\/10\/Entri-Logo-1.png","width":989,"height":446,"caption":"Entri App"},"image":{"@id":"https:\/\/entri.app\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/entri.me\/","https:\/\/x.com\/entri_app"]},{"@type":"Person","@id":"https:\/\/entri.app\/blog\/#\/schema\/person\/f036dab84abae3dcc9390a1110d95d36","name":"Feeba Mahin","url":"https:\/\/entri.app\/blog\/author\/feeba123\/"}]}},"_links":{"self":[{"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/posts\/25522418","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/users\/111"}],"replies":[{"embeddable":true,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/comments?post=25522418"}],"version-history":[{"count":12,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/posts\/25522418\/revisions"}],"predecessor-version":[{"id":25559541,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/posts\/25522418\/revisions\/25559541"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/media\/25522664"}],"wp:attachment":[{"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/media?parent=25522418"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/categories?post=25522418"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/tags?post=25522418"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}