{"id":2656,"date":"2020-02-16T11:13:01","date_gmt":"2020-02-16T05:43:01","guid":{"rendered":"http:\/\/www.pythonpool.com\/?p=2656"},"modified":"2023-12-30T15:32:16","modified_gmt":"2023-12-30T10:02:16","slug":"python-absolute-value","status":"publish","type":"post","link":"https:\/\/www.pythonpool.com\/python-absolute-value\/","title":{"rendered":"Python Absolute Value | abs() Function With Examples"},"content":{"rendered":"\n<p><strong>Python absolute value means removing any negative sign in front of a number and thinking of all numeric values as positive (or zero). However, in Python, we can get the absolute value of any number by inbuilt functions, which are abs() and fabs().<\/strong><\/p>\n\n\n\n<p>In this article, you will learn about the abs() function. The main purpose of this function is to return the absolute value of the number(variable) passed as an argument to it. <\/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-absolute-value\/#How_Can_We_Find_Absolute_Value_Using_abs_Function\" >How Can We Find Absolute Value Using abs() Function?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.pythonpool.com\/python-absolute-value\/#Python_Absolute_Value_Function_abs_function_works_on\" >Python Absolute Value Function abs() function works on?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.pythonpool.com\/python-absolute-value\/#Basic_Syntax_of_abs_Function_in_Python\" >Basic Syntax of abs() Function in Python<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.pythonpool.com\/python-absolute-value\/#Parameters\" >Parameters<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.pythonpool.com\/python-absolute-value\/#Return_Value\" >Return Value<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.pythonpool.com\/python-absolute-value\/#abs_Function_Compatibility\" >abs()&nbsp;Function Compatibility<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.pythonpool.com\/python-absolute-value\/#Absolute_Value_Examples_using_abs_Function_in_Python\" >Absolute Value Examples using abs() Function in Python<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.pythonpool.com\/python-absolute-value\/#Example_1_Python_program_to_return_the_absolute_value_of_an_integer\" >Example 1:  Python program to return the absolute value of an integer-<\/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-absolute-value\/#Example_2_Python_program_to_return_the_absolute_value_of_a_floating-point_number\" >Example 2:  Python program to return the absolute value of a floating-point number-<\/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-absolute-value\/#Example_3_Python_program_to_return_the_absolute_value_of_a_complex_number\" >Example 3:  Python program to return the absolute value of a complex number-<\/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-absolute-value\/#Example_4_Python_absolute_value_of_a_list\" >Example 4: Python absolute value of a list<\/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-absolute-value\/#Do_abs_function_Work_for_String_Data_Type\" >Do abs() function Work for String Data Type?<\/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-absolute-value\/#Is_There_Any_Other_Function_to_Get_The_Absolute_Value_in_Python\" >Is There Any Other Function to Get The Absolute Value in Python?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/www.pythonpool.com\/python-absolute-value\/#Difference_between_abs_and_fabs_methods\" >Difference between abs() and fabs() methods<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/www.pythonpool.com\/python-absolute-value\/#Conclusion\" >Conclusion<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/www.pythonpool.com\/python-absolute-value\/#Trending_Python_Articles\" >Trending Python Articles<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\" id=\"h-how-can-we-find-absolute-value-using-abs-function\"><span class=\"ez-toc-section\" id=\"How_Can_We_Find_Absolute_Value_Using_abs_Function\"><\/span>How Can We Find Absolute Value Using abs() Function?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>The abs() function in Python is used for obtaining the <strong>Python absolute value<\/strong> or the positive value of a number.<\/p>\n\n\n\n<p>We can get the absolute value of an integer, complex number, or a floating number using the abs() function. If the argument\u00a0<strong>x (integral value)<\/strong>\u00a0is a float or integer, then the resultant absolute value will be an integer or float, respectively.<\/p>\n\n\n\n<p>If the argument\u00a0<strong>x (integral value)<\/strong>\u00a0is a complex number, the return\u00a0value will only be the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Magnitude_(mathematics)\">magnitude<\/a> part that can be a floating-point. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-python-absolute-value-function-abs-function-works-on\"><span class=\"ez-toc-section\" id=\"Python_Absolute_Value_Function_abs_function_works_on\"><\/span>Python Absolute Value Function abs() function works on?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>The abs() function works on the following numbers:<br>1. Integers, for example 6, -6, 1 etc.<br>2. Floating point numbers, for example, 5.34, -1.44 etc<br>3. Complex numbers, for example 3+4j, 4+6j etc.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-basic-syntax-of-abs-function-in-python\"><span class=\"ez-toc-section\" id=\"Basic_Syntax_of_abs_Function_in_Python\"><\/span>Basic Syntax of abs() Function in Python<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>The syntax of abs() function is:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>abs( x )<\/code><\/pre>\n\n\n\n<p>where\u00a0<code>x<\/code>\u00a0can be a number or expression that evaluates to a number.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-parameters\"><span class=\"ez-toc-section\" id=\"Parameters\"><\/span>Parameters<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>This function only takes one argument: the number whose absolute value you want to find out. This argument&#8217;s <a href=\"http:\/\/www.pythonpool.com\/python-data-types\/\">data type<\/a> can be any of the following listed.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Integer<\/li>\n\n\n\n<li>Float<\/li>\n\n\n\n<li>Complex Number<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-return-value\"><span class=\"ez-toc-section\" id=\"Return_Value\"><\/span>Return Value<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>abs() function returns absolute value for the given number.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>For an integer value, it will return an integer<\/li>\n\n\n\n<li>For float value, it will return a floating-point value.<\/li>\n\n\n\n<li>And if the complex number, it will return the magnitude part, which can also be a floating-point number.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-abs-function-compatibility\"><span class=\"ez-toc-section\" id=\"abs_Function_Compatibility\"><\/span>abs()&nbsp;Function Compatibility<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>These absolute value function abs() is available and compatible with both Python 2.x and 3.x<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Python Version<\/th><th>abs() defined<\/th><\/tr><\/thead><tbody><tr><td>Python 2.x<\/td><td>Yes<\/td><\/tr><tr><td>Python 3.x<\/td><td>Yes<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-absolute-value-examples-using-abs-function-in-python\"><span class=\"ez-toc-section\" id=\"Absolute_Value_Examples_using_abs_Function_in_Python\"><\/span>Absolute Value Examples using abs() Function in Python<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p> We can get <strong>Python absolute value<\/strong> of generally three data types:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>int<\/li>\n\n\n\n<li>float<\/li>\n\n\n\n<li>complex<\/li>\n<\/ul>\n\n\n\n<p><em>Note: In Python, the imaginary part of the complex number is denoted by <strong>j<\/strong>.<\/em><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-example-1-python-program-to-return-the-absolute-value-of-an-integer\"><span class=\"ez-toc-section\" id=\"Example_1_Python_program_to_return_the_absolute_value_of_an_integer\"><\/span>Example 1:  <strong>Python program to return the absolute value of an integer-<\/strong> <span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nint_num = -40\n\nprint(&quot;The absolute value of an integer number is:&quot;, abs(int_num))\n<\/pre><\/div>\n\n\n<p><strong>Output:<\/strong><\/p>\n\n\n\n<p>The absolute value of an integer number is: 40<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-example-2-python-program-to-return-the-absolute-value-of-a-floating-point-number\"><span class=\"ez-toc-section\" id=\"Example_2_Python_program_to_return_the_absolute_value_of_a_floating-point_number\"><\/span>Example 2:  <strong>Python program to return the absolute value of a floating-point number-<\/strong> <span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nfloat_num = -65.50\n\nprint(&quot;The absolute value of a float number is:&quot;, abs(float_num))\n<\/pre><\/div>\n\n\n<p><strong>Output:<\/strong><\/p>\n\n\n\n<p>The absolute value of a float number is: 65.5<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-example-3-python-program-to-return-the-absolute-value-of-a-complex-number\"><span class=\"ez-toc-section\" id=\"Example_3_Python_program_to_return_the_absolute_value_of_a_complex_number\"><\/span>Example 3:  <strong>Python program to return the absolute value of a complex number-<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>This example shows the magnitude of a complex number. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#A Complex Number\ncomplexNumber = 12 + 9j\n \n#Finding Magnitude of the Complex Number\nmagnitude = abs(complexNumber)\n \n#Printing magnitude to console\nprint(\"The Magnitude of \" + str(complexNumber) + \" is \" + str(magnitude))<\/code><\/pre>\n\n\n\n<p><strong>Output:<\/strong><\/p>\n\n\n\n<p>The magnitude of (12+9j) is 15.0<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-example-4-python-absolute-value-of-a-list\"><span class=\"ez-toc-section\" id=\"Example_4_Python_absolute_value_of_a_list\"><\/span>Example 4: <strong>Python absolute value of a list<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>inputList = &#91;12, 11, -9, 36]\nmappedList = map(abs, inputList)\nprint(list(mappedList))<\/code><\/pre>\n\n\n\n<p><strong>Output:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;12, 11, 9, 36]<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-do-abs-function-work-for-string-data-type\"><span class=\"ez-toc-section\" id=\"Do_abs_function_Work_for_String_Data_Type\"><\/span>Do abs() function Work for String Data Type?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>If you provide any other argument of type other than a number, you will get <strong>TypeError<\/strong>. <\/p>\n\n\n\n<p><strong>Example:<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nstr_abs = 'PythonPool'\nabsVal = abs(str_abs)\n\nprint(&quot;Absolute value of this string is&quot;, &quot;is&quot;, absVal)\n<\/pre><\/div>\n\n\n<p><strong>Output:<\/strong><\/p>\n\n\n\n<p>You will get an error like<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"567\" height=\"93\" src=\"http:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/02\/Capture-4.jpg\" alt=\"Python Absolute Value Error String\" class=\"wp-image-2670\" srcset=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/02\/Capture-4.jpg 567w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/02\/Capture-4-300x49.jpg 300w\" sizes=\"(max-width: 567px) 100vw, 567px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-is-there-any-other-function-to-get-the-absolute-value-in-python\"><span class=\"ez-toc-section\" id=\"Is_There_Any_Other_Function_to_Get_The_Absolute_Value_in_Python\"><\/span>Is There Any Other Function to Get The Absolute Value in Python?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Yes, We can get the absolute value of a number using the <strong>fabs() <\/strong>function. <strong>fabs() method<\/strong>&nbsp;is also a built-in function but it is defined in&nbsp;the <strong>math<\/strong>&nbsp;module, so to use&nbsp;<strong>fabs() method<\/strong>, we need to import&nbsp;<strong>math module<\/strong>&nbsp;first. <\/p>\n\n\n\n<p><strong>Syntax:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>math.fabs(n)<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-difference-between-abs-and-fabs-methods\"><span class=\"ez-toc-section\" id=\"Difference_between_abs_and_fabs_methods\"><\/span>Difference between abs() and fabs() methods<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>There are mainly two&nbsp;<strong>differences between abs() and fabs() methods<\/strong>,<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>abs() method<\/strong>&nbsp;is a standard built-in method, for this, there is no need to import a module. But, the&nbsp;<strong>fabs() method<\/strong>&nbsp;is defined in the&nbsp;<strong>math<\/strong>&nbsp;module, for this, we need to import the&nbsp;<strong>math<\/strong>&nbsp;module first.<\/li>\n\n\n\n<li><strong>abs() method<\/strong>&nbsp;returns either an integer value or a float value based on given number type. But,&nbsp;<strong>fabs() method<\/strong>&nbsp;returns only float value, no matter given number is an integer type or a float type<\/li>\n<\/ol>\n\n\n\n<p><strong>Must Read:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"http:\/\/www.pythonpool.com\/python-data-types\/\">Python Data Types<\/a><\/li>\n\n\n\n<li><a href=\"http:\/\/www.pythonpool.com\/python-stack\/\">Implementation of Stack in Python<\/a><\/li>\n\n\n\n<li><a href=\"http:\/\/www.pythonpool.com\/python-substring\/\">Substring operations in Python<\/a><\/li>\n\n\n\n<li><a href=\"http:\/\/www.pythonpool.com\/python-book\/\">Best Book to Learn Python<\/a><\/li>\n<\/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>We learned to find the <strong>Python absolute value<\/strong> of a number or a numeric expression using abs() function of Python. <\/p>\n\n\n\n<p><strong>With absolute values,<\/strong>&nbsp;we convert negative numbers to positive ones. This helps when computing &#8220;distances&#8221; from positions. With abs, a built-in, we do this with no extra code. <\/p>\n\n\n\n<p>If you still have any doubt or suggestions do comment down below.<\/p>\n\n\n\n<p><em>Happy Coding!<\/em><\/p>\n\n\n<div class=\"monsterinsights-widget-popular-posts monsterinsights-widget-popular-posts-delta monsterinsights-popular-posts-styled monsterinsights-widget-popular-posts-columns-2\"><h2 class=\"monsterinsights-widget-popular-posts-widget-title\"><span class=\"ez-toc-section\" id=\"Trending_Python_Articles\"><\/span>Trending Python Articles<span class=\"ez-toc-section-end\"><\/span><\/h2><ul class=\"monsterinsights-widget-popular-posts-list\"><li ><a href=\"https:\/\/www.pythonpool.com\/fixed-typeerror-cant-compare-datetime-datetime-to-datetime-date\/\"><div class=\"monsterinsights-widget-popular-posts-image\"><img decoding=\"async\" src=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/typeerror-cant-compare-datetime.datetime-to-datetime.date_-300x157.webp\" srcset=\" https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/typeerror-cant-compare-datetime.datetime-to-datetime.date_-300x157.webp 300w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/typeerror-cant-compare-datetime.datetime-to-datetime.date_-1024x536.webp 1024w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/typeerror-cant-compare-datetime.datetime-to-datetime.date_-768x402.webp 768w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/typeerror-cant-compare-datetime.datetime-to-datetime.date_.webp 1200w \" alt=\"[Fixed] typeerror can&#8217;t compare datetime.datetime to datetime.date\" \/><\/div><div class=\"monsterinsights-widget-popular-posts-text\"><span class=\"monsterinsights-widget-popular-posts-title\" >[Fixed] typeerror can&#8217;t compare datetime.datetime to datetime.date<\/span><div class=\"monsterinsights-widget-popular-posts-meta\" ><span class=\"monsterinsights-widget-popular-posts-author\">by Namrata Gulati<\/span><span>&#9679;<\/span><span class=\"monsterinsights-widget-popular-posts-date\">January 11, 2024<\/span><\/div><\/div><\/a><\/li><li ><a href=\"https:\/\/www.pythonpool.com\/fixed-nameerror-name-unicode-is-not-defined\/\"><div class=\"monsterinsights-widget-popular-posts-image\"><img decoding=\"async\" src=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-nameerror-name-Unicode-is-not-defined-300x157.webp\" srcset=\" https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-nameerror-name-Unicode-is-not-defined-300x157.webp 300w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-nameerror-name-Unicode-is-not-defined-1024x536.webp 1024w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-nameerror-name-Unicode-is-not-defined-768x402.webp 768w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-nameerror-name-Unicode-is-not-defined.webp 1200w \" alt=\"[Fixed] nameerror: name Unicode is not defined\" \/><\/div><div class=\"monsterinsights-widget-popular-posts-text\"><span class=\"monsterinsights-widget-popular-posts-title\" >[Fixed] nameerror: name Unicode is not defined<\/span><div class=\"monsterinsights-widget-popular-posts-meta\" ><span class=\"monsterinsights-widget-popular-posts-author\">by Namrata Gulati<\/span><span>&#9679;<\/span><span class=\"monsterinsights-widget-popular-posts-date\">January 2, 2024<\/span><\/div><\/div><\/a><\/li><li ><a href=\"https:\/\/www.pythonpool.com\/solved-runtimeerror-cuda-error-invalid-device-ordinal\/\"><div class=\"monsterinsights-widget-popular-posts-image\"><img decoding=\"async\" src=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Solved-runtimeerror-cuda-error-invalid-device-ordinal-300x157.webp\" srcset=\" https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Solved-runtimeerror-cuda-error-invalid-device-ordinal-300x157.webp 300w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Solved-runtimeerror-cuda-error-invalid-device-ordinal-1024x536.webp 1024w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Solved-runtimeerror-cuda-error-invalid-device-ordinal-768x402.webp 768w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Solved-runtimeerror-cuda-error-invalid-device-ordinal.webp 1200w \" alt=\"[Solved] runtimeerror: cuda error: invalid device ordinal\" \/><\/div><div class=\"monsterinsights-widget-popular-posts-text\"><span class=\"monsterinsights-widget-popular-posts-title\" >[Solved] runtimeerror: cuda error: invalid device ordinal<\/span><div class=\"monsterinsights-widget-popular-posts-meta\" ><span class=\"monsterinsights-widget-popular-posts-author\">by Namrata Gulati<\/span><span>&#9679;<\/span><span class=\"monsterinsights-widget-popular-posts-date\">January 2, 2024<\/span><\/div><\/div><\/a><\/li><li ><a href=\"https:\/\/www.pythonpool.com\/fixed-typeerror-type-numpy-ndarray-doesnt-define-__round__-method\/\"><div class=\"monsterinsights-widget-popular-posts-image\"><img decoding=\"async\" src=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-typeerror-type-numpy.ndarray-doesnt-define-__round__-method-300x157.webp\" srcset=\" https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-typeerror-type-numpy.ndarray-doesnt-define-__round__-method-300x157.webp 300w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-typeerror-type-numpy.ndarray-doesnt-define-__round__-method-1024x536.webp 1024w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-typeerror-type-numpy.ndarray-doesnt-define-__round__-method-768x402.webp 768w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-typeerror-type-numpy.ndarray-doesnt-define-__round__-method.webp 1200w \" alt=\"[Fixed] typeerror: type numpy.ndarray doesn&#8217;t define __round__ method\" \/><\/div><div class=\"monsterinsights-widget-popular-posts-text\"><span class=\"monsterinsights-widget-popular-posts-title\" >[Fixed] typeerror: type numpy.ndarray doesn&#8217;t define __round__ method<\/span><div class=\"monsterinsights-widget-popular-posts-meta\" ><span class=\"monsterinsights-widget-popular-posts-author\">by Namrata Gulati<\/span><span>&#9679;<\/span><span class=\"monsterinsights-widget-popular-posts-date\">January 2, 2024<\/span><\/div><\/div><\/a><\/li><\/ul><\/div><p><\/p>","protected":false},"excerpt":{"rendered":"<p>Python absolute value means removing any negative sign in front of a number and thinking of all numeric values as positive (or zero). However, in &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"Python Absolute Value | abs() Function With Examples\" class=\"read-more button\" href=\"https:\/\/www.pythonpool.com\/python-absolute-value\/#more-2656\" aria-label=\"More on Python Absolute Value | abs() Function With Examples\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":2665,"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":[296,15],"tags":[495,491,492,507,499,494,510,502,493,506,504,509,512,505,496,508,511,498,501,500,503,497],"class_list":["post-2656","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-how-to","category-tutorials","tag-absolute-value-function-in-python","tag-absolute-value-function-python","tag-absolute-value-in-python","tag-absolute-value-in-python-3","tag-absolute-value-on-python","tag-absolute-value-python","tag-absolute-value-python-3","tag-absolute-value-python-numpy","tag-get-absolute-value-python","tag-how-to-do-absolute-value-in-python","tag-how-to-get-absolute-value-in-python","tag-how-to-take-absolute-value-in-python","tag-math-absolute-value-python","tag-python-3-absolute-value","tag-python-absolute-value","tag-python-absolute-value-function","tag-python-absolute-value-of-complex-number","tag-python-absolute-value-of-list","tag-python-get-absolute-value","tag-python-math-absolute-value","tag-python-numpy-absolute-value","tag-take-absolute-value-in-python","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 Absolute Value | abs() Function With Examples - Python Pool<\/title>\n<meta name=\"description\" content=\"The abs() function in Python is used for obtaining the Python absolute value or the positive value of a number (int, floatng-point, complex).\" \/>\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-absolute-value\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python Absolute Value | abs() Function With Examples\" \/>\n<meta property=\"og:description\" content=\"Python absolute value means removing any negative sign in front of a number and thinking of all numeric values as positive (or zero). However, in Python,\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.pythonpool.com\/python-absolute-value\/\" \/>\n<meta property=\"og:site_name\" content=\"Python Pool\" \/>\n<meta property=\"article:published_time\" content=\"2020-02-16T05:43:01+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-30T10:02:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/02\/hjkl.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1019\" \/>\n\t<meta property=\"og:image:height\" content=\"613\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Python Pool\" \/>\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=\"Python Pool\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.pythonpool.com\/python-absolute-value\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.pythonpool.com\/python-absolute-value\/\"},\"author\":{\"name\":\"Python Pool\",\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/person\/f87448ee54c0ffd2889fbf2408c18998\"},\"headline\":\"Python Absolute Value | abs() Function With Examples\",\"datePublished\":\"2020-02-16T05:43:01+00:00\",\"dateModified\":\"2023-12-30T10:02:16+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.pythonpool.com\/python-absolute-value\/\"},\"wordCount\":731,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.pythonpool.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.pythonpool.com\/python-absolute-value\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/02\/hjkl.jpg\",\"keywords\":[\"absolute value function in python\",\"absolute value function python\",\"absolute value in python\",\"absolute value in python 3\",\"absolute value on python\",\"absolute value python\",\"absolute value python 3\",\"absolute value python numpy\",\"get absolute value python\",\"how to do absolute value in python\",\"how to get absolute value in python\",\"how to take absolute value in python\",\"math absolute value python\",\"python 3 absolute value\",\"python absolute value\",\"python absolute value function\",\"python absolute value of complex number\",\"python absolute value of list\",\"python get absolute value\",\"python math absolute value\",\"python numpy absolute value\",\"take absolute value in python\"],\"articleSection\":[\"How to\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.pythonpool.com\/python-absolute-value\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.pythonpool.com\/python-absolute-value\/\",\"url\":\"https:\/\/www.pythonpool.com\/python-absolute-value\/\",\"name\":\"Python Absolute Value | abs() Function With Examples - Python Pool\",\"isPartOf\":{\"@id\":\"https:\/\/www.pythonpool.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.pythonpool.com\/python-absolute-value\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.pythonpool.com\/python-absolute-value\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/02\/hjkl.jpg\",\"datePublished\":\"2020-02-16T05:43:01+00:00\",\"dateModified\":\"2023-12-30T10:02:16+00:00\",\"description\":\"The abs() function in Python is used for obtaining the Python absolute value or the positive value of a number (int, floatng-point, complex).\",\"breadcrumb\":{\"@id\":\"https:\/\/www.pythonpool.com\/python-absolute-value\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.pythonpool.com\/python-absolute-value\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.pythonpool.com\/python-absolute-value\/#primaryimage\",\"url\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/02\/hjkl.jpg\",\"contentUrl\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/02\/hjkl.jpg\",\"width\":1019,\"height\":613,\"caption\":\"Python Absolute Value\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.pythonpool.com\/python-absolute-value\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.pythonpool.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python Absolute Value | abs() Function With Examples\"}]},{\"@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\/f87448ee54c0ffd2889fbf2408c18998\",\"name\":\"Python Pool\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/fdd3cb9ad7f560324dfd481989550aa8ffce84388fd253c42beca35c999d3108?s=96&d=wavatar&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/fdd3cb9ad7f560324dfd481989550aa8ffce84388fd253c42beca35c999d3108?s=96&d=wavatar&r=g\",\"caption\":\"Python Pool\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Python Absolute Value | abs() Function With Examples - Python Pool","description":"The abs() function in Python is used for obtaining the Python absolute value or the positive value of a number (int, floatng-point, complex).","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-absolute-value\/","og_locale":"en_US","og_type":"article","og_title":"Python Absolute Value | abs() Function With Examples","og_description":"Python absolute value means removing any negative sign in front of a number and thinking of all numeric values as positive (or zero). However, in Python,","og_url":"https:\/\/www.pythonpool.com\/python-absolute-value\/","og_site_name":"Python Pool","article_published_time":"2020-02-16T05:43:01+00:00","article_modified_time":"2023-12-30T10:02:16+00:00","og_image":[{"width":1019,"height":613,"url":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/02\/hjkl.jpg","type":"image\/jpeg"}],"author":"Python Pool","twitter_card":"summary_large_image","twitter_creator":"@pythonpool","twitter_site":"@pythonpool","twitter_misc":{"Written by":"Python Pool","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.pythonpool.com\/python-absolute-value\/#article","isPartOf":{"@id":"https:\/\/www.pythonpool.com\/python-absolute-value\/"},"author":{"name":"Python Pool","@id":"https:\/\/www.pythonpool.com\/#\/schema\/person\/f87448ee54c0ffd2889fbf2408c18998"},"headline":"Python Absolute Value | abs() Function With Examples","datePublished":"2020-02-16T05:43:01+00:00","dateModified":"2023-12-30T10:02:16+00:00","mainEntityOfPage":{"@id":"https:\/\/www.pythonpool.com\/python-absolute-value\/"},"wordCount":731,"commentCount":0,"publisher":{"@id":"https:\/\/www.pythonpool.com\/#organization"},"image":{"@id":"https:\/\/www.pythonpool.com\/python-absolute-value\/#primaryimage"},"thumbnailUrl":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/02\/hjkl.jpg","keywords":["absolute value function in python","absolute value function python","absolute value in python","absolute value in python 3","absolute value on python","absolute value python","absolute value python 3","absolute value python numpy","get absolute value python","how to do absolute value in python","how to get absolute value in python","how to take absolute value in python","math absolute value python","python 3 absolute value","python absolute value","python absolute value function","python absolute value of complex number","python absolute value of list","python get absolute value","python math absolute value","python numpy absolute value","take absolute value in python"],"articleSection":["How to","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.pythonpool.com\/python-absolute-value\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.pythonpool.com\/python-absolute-value\/","url":"https:\/\/www.pythonpool.com\/python-absolute-value\/","name":"Python Absolute Value | abs() Function With Examples - Python Pool","isPartOf":{"@id":"https:\/\/www.pythonpool.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.pythonpool.com\/python-absolute-value\/#primaryimage"},"image":{"@id":"https:\/\/www.pythonpool.com\/python-absolute-value\/#primaryimage"},"thumbnailUrl":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/02\/hjkl.jpg","datePublished":"2020-02-16T05:43:01+00:00","dateModified":"2023-12-30T10:02:16+00:00","description":"The abs() function in Python is used for obtaining the Python absolute value or the positive value of a number (int, floatng-point, complex).","breadcrumb":{"@id":"https:\/\/www.pythonpool.com\/python-absolute-value\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.pythonpool.com\/python-absolute-value\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pythonpool.com\/python-absolute-value\/#primaryimage","url":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/02\/hjkl.jpg","contentUrl":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/02\/hjkl.jpg","width":1019,"height":613,"caption":"Python Absolute Value"},{"@type":"BreadcrumbList","@id":"https:\/\/www.pythonpool.com\/python-absolute-value\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.pythonpool.com\/"},{"@type":"ListItem","position":2,"name":"Python Absolute Value | abs() Function With Examples"}]},{"@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\/f87448ee54c0ffd2889fbf2408c18998","name":"Python Pool","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pythonpool.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/fdd3cb9ad7f560324dfd481989550aa8ffce84388fd253c42beca35c999d3108?s=96&d=wavatar&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/fdd3cb9ad7f560324dfd481989550aa8ffce84388fd253c42beca35c999d3108?s=96&d=wavatar&r=g","caption":"Python Pool"}}]}},"_links":{"self":[{"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/posts\/2656","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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/comments?post=2656"}],"version-history":[{"count":15,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/posts\/2656\/revisions"}],"predecessor-version":[{"id":31312,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/posts\/2656\/revisions\/31312"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/media\/2665"}],"wp:attachment":[{"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/media?parent=2656"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/categories?post=2656"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/tags?post=2656"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}