{"id":2430,"date":"2020-01-14T14:32:05","date_gmt":"2020-01-14T09:02:05","guid":{"rendered":"http:\/\/www.pythonpool.com\/?p=2430"},"modified":"2023-12-30T16:10:37","modified_gmt":"2023-12-30T10:40:37","slug":"python-sum","status":"publish","type":"post","link":"https:\/\/www.pythonpool.com\/python-sum\/","title":{"rendered":"Python sum | python sum list | sum() function in Python"},"content":{"rendered":"\n<p><strong>Python sum() function is used to sum or add elements of the iterator from the start to the end of the iterable. It is generally used with numbers only.<\/strong><\/p>\n\n\n\n<p>In this post, we will see about the Python sum () function.<\/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-sum\/#Introduction\" >Introduction<\/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-sum\/#Syntax_of_sum\" >Syntax of sum<\/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-sum\/#Parameters\" >Parameters<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.pythonpool.com\/python-sum\/#What_sum_function_returns_in_Python\" >What sum function returns in Python<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.pythonpool.com\/python-sum\/#The_time_complexity_of_sum\" >The time complexity of sum()<\/a><\/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-sum\/#Python_program_to_calculate_the_sum_of_elements_in_a_list\" >Python program to calculate the sum of elements in a list<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.pythonpool.com\/python-sum\/#Sum_of_Python_list\" >Sum of Python list<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.pythonpool.com\/python-sum\/#Python_Program_to_Sum_the_list_with_start_10\" >Python Program to Sum the list with start 10<\/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-sum\/#Program_to_Sum_the_list_of_float\" >Program to Sum the list of float<\/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-sum\/#Python_Program_to_Sum_the_list_of_float_with_start_101\" >Python Program to Sum the list of float with start 10.1<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.pythonpool.com\/python-sum\/#Program_to_calculate_the_sum_of_elements_in_a_tuple\" >Program to calculate the sum of elements in a tuple<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/www.pythonpool.com\/python-sum\/#Example_1_Adding_all_items_in_a_tuple_and_returning_the_result\" >Example 1:  Adding all items in a tuple, and returning the result<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/www.pythonpool.com\/python-sum\/#Example_2_Starting_with_the_10_and_adding_all_items_in_a_tuple_to_this_number\" >Example 2: Starting with the 10, and adding all items in a tuple to this number:<\/a><\/li><\/ul><\/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-sum\/#Python_Program_to_calculate_the_sum_of_complex_numbers\" >Python Program to calculate the sum of complex numbers<\/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-sum\/#Program_to_calculate_the_sum_of_sets\" >Program to calculate the sum of sets<\/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-sum\/#Python_Program_to_use_the_sum_function_in_a_dictionary\" >Python Program to use the sum function in a dictionary<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/www.pythonpool.com\/python-sum\/#Working_of_sum_function_in_list_of_%E2%80%9Cstrings%E2%80%9D\" >Working of sum() function in list of &#8220;strings&#8221;:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/www.pythonpool.com\/python-sum\/#Alternative_of_sum\" >Alternative of sum<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-19\" href=\"https:\/\/www.pythonpool.com\/python-sum\/#Conclusion\" >Conclusion<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-20\" href=\"https:\/\/www.pythonpool.com\/python-sum\/#Trending_Python_Articles\" >Trending Python Articles<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\" id=\"h-introduction\"><span class=\"ez-toc-section\" id=\"Introduction\"><\/span>Introduction<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Python 3 has many <a href=\"http:\/\/www.pythonpool.com\/python-clamp\/\">built-in functions<\/a> that you can readily use in any program you\u2019re working on. Some functions enable you to\u00a0convert data types, and others are specific to a certain type, like\u00a0strings. <\/p>\n\n\n\n<p> The&nbsp;<code>sum()<\/code>&nbsp;function returns a number, the sum of all items in an iterable. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-syntax-of-sum\"><span class=\"ez-toc-section\" id=\"Syntax_of_sum\"><\/span>Syntax of sum<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>sum(iterable, start) <\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-parameters\"><span class=\"ez-toc-section\" id=\"Parameters\"><\/span>Parameters <span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><strong>iterable<\/strong>: iterable can be anything from numbers to list, tuple &amp; dictionaries.<br><strong>start <\/strong>: [optional] This start is added to the sum of numbers in the iterable. <\/p>\n\n\n\n<p>If start is not given in the syntax, it is assumed to be 0.<\/p>\n\n\n\n<p><strong>Note:<\/strong>  Here, the iterable may be\u00a0Python list,\u00a0tuple,\u00a0set, or\u00a0dictionary. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-what-sum-function-returns-in-python\"><span class=\"ez-toc-section\" id=\"What_sum_function_returns_in_Python\"><\/span>What sum function returns in Python<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>The sum function returns<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Sum of the iterable from left to right<\/li>\n\n\n\n<li>If start is provided, it returns start + sum of iterable from left to right.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-the-time-complexity-of-sum\"><span class=\"ez-toc-section\" id=\"The_time_complexity_of_sum\"><\/span>The time complexity of sum() <span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>The time complexity of Python sum() depends on your data structure. For a flat list, dict you cannot do better than O(n) because you have to look at each item in the list to add them up.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-python-program-to-calculate-the-sum-of-elements-in-a-list\"><span class=\"ez-toc-section\" id=\"Python_program_to_calculate_the_sum_of_elements_in_a_list\"><\/span>Python program to calculate the sum of elements in a list<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-sum-of-python-list\"><span class=\"ez-toc-section\" id=\"Sum_of_Python_list\"><\/span>Sum of Python list<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>To add all the elements of a list, a solution is to use the built-in function&nbsp;sum(), illustration: <\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nlist = &#x5B;2, 3, 5, 8]\nsum(list)\n<\/pre><\/div>\n\n\n<p><strong>Output<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">18<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-python-program-to-sum-the-list-with-start-10\"><span class=\"ez-toc-section\" id=\"Python_Program_to_Sum_the_list_with_start_10\"><\/span>Python Program to Sum the list with start 10<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nlist = &#x5B;2, 3, 5, 8]\nprint(sum(list, 10))\n<\/pre><\/div>\n\n\n<p><strong>Output<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">18<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-program-to-sum-the-list-of-float\"><span class=\"ez-toc-section\" id=\"Program_to_Sum_the_list_of_float\"><\/span>Program to Sum the list of float<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nfList=&#x5B;1.2,2.3,3.2,4.9]\nprint(sum(fList))\n<\/pre><\/div>\n\n\n<p><strong>Output<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">11.600000000000001<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-python-program-to-sum-the-list-of-float-with-start-10-1\"><span class=\"ez-toc-section\" id=\"Python_Program_to_Sum_the_list_of_float_with_start_101\"><\/span>Python Program to Sum the list of float with start 10.1<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nfList=&#x5B;1.2,2.3,3.2,4.9]\nprint(sum(fList,10.1))\n<\/pre><\/div>\n\n\n<p><strong>Output<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">21.699999999999996<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-program-to-calculate-the-sum-of-elements-in-a-tuple\"><span class=\"ez-toc-section\" id=\"Program_to_calculate_the_sum_of_elements_in_a_tuple\"><\/span>Program to calculate the sum of elements in a tuple<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-example-1-adding-all-items-in-a-tuple-and-returning-the-result\"><span class=\"ez-toc-section\" id=\"Example_1_Adding_all_items_in_a_tuple_and_returning_the_result\"><\/span>Example 1:  Adding all items in a tuple, and returning the result <span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\ntuple = (1, 2, 3, 4, 5)\nprint(sum(tuple))\n<\/pre><\/div>\n\n\n<p><strong>Output<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">15<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-example-2-starting-with-the-10-and-adding-all-items-in-a-tuple-to-this-number\"><span class=\"ez-toc-section\" id=\"Example_2_Starting_with_the_10_and_adding_all_items_in_a_tuple_to_this_number\"><\/span>Example 2: Starting with the 10, and adding all items in a tuple to this number:   <span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\ntuple = (1, 2, 3, 4, 5)\nprint(sum(tuple, 10))\n<\/pre><\/div>\n\n\n<p><strong>Output<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">25<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-python-program-to-calculate-the-sum-of-complex-numbers\"><span class=\"ez-toc-section\" id=\"Python_Program_to_calculate_the_sum_of_complex_numbers\"><\/span>Python Program to calculate the sum of complex numbers<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p> In sum() function works with complex numbers too. <\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\ns = sum(&#x5B;1 + 2j, 3 + 4j])\nprint(s)\n\ns = sum(&#x5B;1 + 2j, 3 + 4j], 2 + 2j)\nprint(s)\n\ns = sum(&#x5B;1 + 2j, 2, 1.5 - 2j])\nprint(s)\n<\/pre><\/div>\n\n\n<p><strong>Output<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">(4+6j) (6+8j) (4.5+0j) <\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-program-to-calculate-the-sum-of-sets\"><span class=\"ez-toc-section\" id=\"Program_to_calculate_the_sum_of_sets\"><\/span>Program to calculate the sum of sets<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p> The sum() function works with the <a rel=\"noreferrer noopener\" aria-label=\"set (opens in a new tab)\" href=\"https:\/\/docs.python.org\/3\/library\/stdtypes.html\" target=\"_blank\">set<\/a> too. <\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nsett = {1, 2, 3, 4, 5}\nprint(sum(sett))\n<\/pre><\/div>\n\n\n<p><strong>Output<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">15<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-python-program-to-use-the-sum-function-in-a-dictionary\"><span class=\"ez-toc-section\" id=\"Python_Program_to_use_the_sum_function_in_a_dictionary\"><\/span>Python Program to use the sum function in a dictionary<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In the case of the Python dictionary, the key to the dictionary will get added. The output will be the sum of all the keys of the dictionary.  <\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\ndict = {1: &quot;one&quot;, 2: &quot;two&quot;, 3: &quot;three&quot;}\nprint(sum(dict))\n<\/pre><\/div>\n\n\n<p><strong>Output<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">6<\/pre>\n\n\n\n<p>See the values of the dictionary are String, but it does not matter here because we will add the keys and not the values. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-working-of-sum-function-in-list-of-strings\"><span class=\"ez-toc-section\" id=\"Working_of_sum_function_in_list_of_%E2%80%9Cstrings%E2%80%9D\"><\/span>Working of sum() function in list of &#8220;strings&#8221;: <span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\n&gt;&gt;&gt; list = &#x5B;'a','b','c','d']\n&gt;&gt;&gt; sum(list)\nTraceback (most recent call last):\n  File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;\nTypeError: unsupported operand type(s) for +: 'int' and 'str'\n<\/pre><\/div>\n\n\n<p class=\"has-vivid-red-color has-text-color\"><strong>Note<\/strong>: In the case of a list of strings the function<strong> sum()<\/strong> does not work.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-also-read\"><strong>Also Read:<\/strong><\/h4>\n\n\n\n<p class=\"has-vivid-purple-color has-very-light-gray-background-color has-text-color has-background\"><a href=\"http:\/\/www.pythonpool.com\/python-remove-duplicates-from-list\/\">Python Remove Duplicates From List<\/a><br><a href=\"http:\/\/www.pythonpool.com\/python-print-without-newline\/\">Python Print Without Newline<\/a><br><a href=\"http:\/\/www.pythonpool.com\/learn-python-the-hard-way-pdf\/\">Learn Python the Hard Way Review PDF<\/a><br><a href=\"http:\/\/www.pythonpool.com\/data-science-internship\/\">How to Get a Data Science Internship With No Experience<\/a><br><a href=\"http:\/\/www.pythonpool.com\/python-map-function\/\">Python Map<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-alternative-of-sum\"><span class=\"ez-toc-section\" id=\"Alternative_of_sum\"><\/span>Alternative of sum <span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>For some use cases, there are good alternatives to sum(). The preferred, fast way to concatenate a sequence of strings is by calling \u201c \u201d.join(sequence). To add floating point values with extended precision, see math.fsum(). To concatenate a series of iterables, consider using itertools.chain().<\/p>\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>So in this tutorial, we have tried to cover all the details and examples of Python sum function. But still, if you have any questions and suggestions comment down below.<\/p>\n\n\n\n<p>Happy Coding!<\/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 sum() function is used to sum or add elements of the iterator from the start to the end of the iterable. It is generally &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"Python sum | python sum list | sum() function in Python\" class=\"read-more button\" href=\"https:\/\/www.pythonpool.com\/python-sum\/#more-2430\" aria-label=\"More on Python sum | python sum list | sum() function in Python\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":2433,"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":[4,15],"tags":[253,274,267,262,240,254,239,236,260,234,257,255,238,252,237,269,235,230,271,248,245,277,261,247,280,259,246,266,275,268,256,250,244,231,242,249,243,264,265,273,270,233,241,232,251,279,263],"class_list":["post-2430","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-programs","category-tutorials","tag-array-sum-python","tag-cumulative-sum-python","tag-how-to-sum-a-list-in-python","tag-how-to-sum-in-python","tag-list-sum-python","tag-python-array-sum","tag-python-cumulative-sum","tag-python-list-sum","tag-python-numpy-sum","tag-python-sum","tag-python-sum-a-list","tag-python-sum-all-elements-in-list","tag-python-sum-array","tag-python-sum-dictionary-values","tag-python-sum-elements-in-list","tag-python-sum-example","tag-python-sum-function","tag-python-sum-list","tag-python-sum-list-of-strings","tag-python-sum-of-a-list","tag-python-sum-of-array","tag-python-sum-of-digits","tag-python-sum-of-list","tag-python-sum-of-list-elements","tag-python-sum-values-in-list","tag-sum-a-list-in-python","tag-sum-a-list-python","tag-sum-all-elements-in-list-python","tag-sum-an-array-python","tag-sum-array-python","tag-sum-dictionary-values-python","tag-sum-elements-in-list-python","tag-sum-function-in-python","tag-sum-function-python","tag-sum-in-python","tag-sum-list-python","tag-sum-of-a-list-python","tag-sum-of-an-array-python","tag-sum-of-array-python","tag-sum-of-digits-python","tag-sum-of-elements-in-list-python","tag-sum-of-list-python","tag-sum-of-squares-python","tag-sum-python","tag-sum-python-list","tag-sum-values-in-dictionary-python","tag-two-sum-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 sum | python sum list | sum() function in Python - Python Pool<\/title>\n<meta name=\"description\" content=\"Python sum() function is used to sum or add elements of the iterator from start to the end of iterable. It is generally used with numbers only.\" \/>\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-sum\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python sum | python sum list | sum() function in Python\" \/>\n<meta property=\"og:description\" content=\"Python sum() function is used to sum or add elements of the iterator from the start to the end of the iterable. It is generally used with numbers only. In\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.pythonpool.com\/python-sum\/\" \/>\n<meta property=\"og:site_name\" content=\"Python Pool\" \/>\n<meta property=\"article:published_time\" content=\"2020-01-14T09:02:05+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-30T10:40:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/01\/Capture-5.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1019\" \/>\n\t<meta property=\"og:image:height\" content=\"616\" \/>\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=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.pythonpool.com\/python-sum\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.pythonpool.com\/python-sum\/\"},\"author\":{\"name\":\"Python Pool\",\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/person\/f87448ee54c0ffd2889fbf2408c18998\"},\"headline\":\"Python sum | python sum list | sum() function in Python\",\"datePublished\":\"2020-01-14T09:02:05+00:00\",\"dateModified\":\"2023-12-30T10:40:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.pythonpool.com\/python-sum\/\"},\"wordCount\":562,\"commentCount\":4,\"publisher\":{\"@id\":\"https:\/\/www.pythonpool.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.pythonpool.com\/python-sum\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/01\/Capture-5.jpg\",\"keywords\":[\"array sum python\",\"cumulative sum python\",\"how to sum a list in python\",\"how to sum in python\",\"list sum python\",\"python array sum\",\"python cumulative sum\",\"python list sum\",\"python numpy sum\",\"python sum\",\"python sum a list\",\"python sum all elements in list\",\"python sum array\",\"python sum dictionary values\",\"python sum elements in list\",\"python sum example\",\"python sum function\",\"python sum list\",\"python sum list of strings\",\"python sum of a list\",\"python sum of array\",\"python sum of digits\",\"python sum of list\",\"python sum of list elements\",\"python sum values in list\",\"sum a list in python\",\"sum a list python\",\"sum all elements in list python\",\"sum an array python\",\"sum array python\",\"sum dictionary values python\",\"sum elements in list python\",\"sum function in python\",\"sum function python\",\"sum in python\",\"sum list python\",\"sum of a list python\",\"sum of an array python\",\"sum of array python\",\"sum of digits python\",\"sum of elements in list python\",\"sum of list python\",\"sum of squares python\",\"sum python\",\"sum python list\",\"sum values in dictionary python\",\"two sum python\"],\"articleSection\":[\"Programs\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.pythonpool.com\/python-sum\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.pythonpool.com\/python-sum\/\",\"url\":\"https:\/\/www.pythonpool.com\/python-sum\/\",\"name\":\"Python sum | python sum list | sum() function in Python - Python Pool\",\"isPartOf\":{\"@id\":\"https:\/\/www.pythonpool.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.pythonpool.com\/python-sum\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.pythonpool.com\/python-sum\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/01\/Capture-5.jpg\",\"datePublished\":\"2020-01-14T09:02:05+00:00\",\"dateModified\":\"2023-12-30T10:40:37+00:00\",\"description\":\"Python sum() function is used to sum or add elements of the iterator from start to the end of iterable. It is generally used with numbers only.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.pythonpool.com\/python-sum\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.pythonpool.com\/python-sum\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.pythonpool.com\/python-sum\/#primaryimage\",\"url\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/01\/Capture-5.jpg\",\"contentUrl\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/01\/Capture-5.jpg\",\"width\":1019,\"height\":616,\"caption\":\"python sum\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.pythonpool.com\/python-sum\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.pythonpool.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python sum | python sum list | sum() function in Python\"}]},{\"@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 sum | python sum list | sum() function in Python - Python Pool","description":"Python sum() function is used to sum or add elements of the iterator from start to the end of iterable. It is generally used with numbers only.","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-sum\/","og_locale":"en_US","og_type":"article","og_title":"Python sum | python sum list | sum() function in Python","og_description":"Python sum() function is used to sum or add elements of the iterator from the start to the end of the iterable. It is generally used with numbers only. In","og_url":"https:\/\/www.pythonpool.com\/python-sum\/","og_site_name":"Python Pool","article_published_time":"2020-01-14T09:02:05+00:00","article_modified_time":"2023-12-30T10:40:37+00:00","og_image":[{"width":1019,"height":616,"url":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/01\/Capture-5.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":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.pythonpool.com\/python-sum\/#article","isPartOf":{"@id":"https:\/\/www.pythonpool.com\/python-sum\/"},"author":{"name":"Python Pool","@id":"https:\/\/www.pythonpool.com\/#\/schema\/person\/f87448ee54c0ffd2889fbf2408c18998"},"headline":"Python sum | python sum list | sum() function in Python","datePublished":"2020-01-14T09:02:05+00:00","dateModified":"2023-12-30T10:40:37+00:00","mainEntityOfPage":{"@id":"https:\/\/www.pythonpool.com\/python-sum\/"},"wordCount":562,"commentCount":4,"publisher":{"@id":"https:\/\/www.pythonpool.com\/#organization"},"image":{"@id":"https:\/\/www.pythonpool.com\/python-sum\/#primaryimage"},"thumbnailUrl":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/01\/Capture-5.jpg","keywords":["array sum python","cumulative sum python","how to sum a list in python","how to sum in python","list sum python","python array sum","python cumulative sum","python list sum","python numpy sum","python sum","python sum a list","python sum all elements in list","python sum array","python sum dictionary values","python sum elements in list","python sum example","python sum function","python sum list","python sum list of strings","python sum of a list","python sum of array","python sum of digits","python sum of list","python sum of list elements","python sum values in list","sum a list in python","sum a list python","sum all elements in list python","sum an array python","sum array python","sum dictionary values python","sum elements in list python","sum function in python","sum function python","sum in python","sum list python","sum of a list python","sum of an array python","sum of array python","sum of digits python","sum of elements in list python","sum of list python","sum of squares python","sum python","sum python list","sum values in dictionary python","two sum python"],"articleSection":["Programs","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.pythonpool.com\/python-sum\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.pythonpool.com\/python-sum\/","url":"https:\/\/www.pythonpool.com\/python-sum\/","name":"Python sum | python sum list | sum() function in Python - Python Pool","isPartOf":{"@id":"https:\/\/www.pythonpool.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.pythonpool.com\/python-sum\/#primaryimage"},"image":{"@id":"https:\/\/www.pythonpool.com\/python-sum\/#primaryimage"},"thumbnailUrl":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/01\/Capture-5.jpg","datePublished":"2020-01-14T09:02:05+00:00","dateModified":"2023-12-30T10:40:37+00:00","description":"Python sum() function is used to sum or add elements of the iterator from start to the end of iterable. It is generally used with numbers only.","breadcrumb":{"@id":"https:\/\/www.pythonpool.com\/python-sum\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.pythonpool.com\/python-sum\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pythonpool.com\/python-sum\/#primaryimage","url":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/01\/Capture-5.jpg","contentUrl":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/01\/Capture-5.jpg","width":1019,"height":616,"caption":"python sum"},{"@type":"BreadcrumbList","@id":"https:\/\/www.pythonpool.com\/python-sum\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.pythonpool.com\/"},{"@type":"ListItem","position":2,"name":"Python sum | python sum list | sum() function in Python"}]},{"@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\/2430","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=2430"}],"version-history":[{"count":6,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/posts\/2430\/revisions"}],"predecessor-version":[{"id":31325,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/posts\/2430\/revisions\/31325"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/media\/2433"}],"wp:attachment":[{"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/media?parent=2430"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/categories?post=2430"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/tags?post=2430"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}