{"id":14840,"date":"2021-07-24T20:39:57","date_gmt":"2021-07-24T15:09:57","guid":{"rendered":"http:\/\/www.pythonpool.com\/?p=14840"},"modified":"2021-07-24T20:40:00","modified_gmt":"2021-07-24T15:10:00","slug":"python-union-of-lists","status":"publish","type":"post","link":"https:\/\/www.pythonpool.com\/python-union-of-lists\/","title":{"rendered":"Union of Two or more lists in Python"},"content":{"rendered":"\n<p>Here we are going to see the union of two or more lists in Python. Union means taking the elements in the several lists and put them in a single list. We can add two or more two lists in Python. Now we will see how to union two lists and more than two, which is how to add three lists.<\/p>\n\n\n\n<p><strong>As we know, union means adding lists or sets or tuples. In python, the operator &#8220;|&#8221; is used to union o two sets. The function &#8220;union()&#8221; is<\/strong>&nbsp;<strong>used to <a href=\"http:\/\/www.pythonpool.com\/learn-how-to-combine-sets-in-python\/\" target=\"_blank\" rel=\"noreferrer noopener\"><span style=\"text-decoration: underline;\">join two or more sets<\/span><\/a> or lists.&nbsp;It is not compulsory that the given input must be a set. It can be any iterable object such as a list or tuple.<\/strong><\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_74 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #990303;color:#990303\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #990303;color:#990303\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.pythonpool.com\/python-union-of-lists\/#How_does_the_union_function_work\" >How does the union() function work?<\/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-union-of-lists\/#What_are_the_syntax_parameter_and_return_type_of_union_function\" >What are the syntax, parameter, and return type of union() function?<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.pythonpool.com\/python-union-of-lists\/#Syntax\" >Syntax<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.pythonpool.com\/python-union-of-lists\/#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-union-of-lists\/#Returns\" >Returns<\/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-union-of-lists\/#Union_of_two_lists_with_duplicate_values\" >Union of two lists with duplicate values<\/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-union-of-lists\/#Code\" >Code<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.pythonpool.com\/python-union-of-lists\/#Union_of_two_list_without_duplicate_values\" >Union of two list without duplicate values<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.pythonpool.com\/python-union-of-lists\/#Code-2\" >Code<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.pythonpool.com\/python-union-of-lists\/#Union_of_three_lists_with_duplicate_values\" >Union of three lists with duplicate values<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.pythonpool.com\/python-union-of-lists\/#Code-3\" >Code<\/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-union-of-lists\/#Union_of_three_list_without_duplicate_values\" >Union of three list without duplicate values.<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/www.pythonpool.com\/python-union-of-lists\/#Code-4\" >Code<\/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-union-of-lists\/#FAQs_Related_to_Python_Union_of_Lists\" >FAQs Related to Python Union of Lists<\/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-union-of-lists\/#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-union-of-lists\/#Trending_Right_Now\" >Trending Right Now<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_does_the_union_function_work\"><\/span>How does the union() fun<strong>ction work?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>The union() function returns the new list containing all the elements present in the input. In the union() function, the elements are unique. It returns the elements in ascending order. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-what-are-the-syntax-parameter-and-return-type-of-union-function\"><span class=\"ez-toc-section\" id=\"What_are_the_syntax_parameter_and_return_type_of_union_function\"><\/span>What are the syntax, parameter, and return type of union() function?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-syntax\"><span class=\"ez-toc-section\" id=\"Syntax\"><\/span>Syntax<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p><strong>The syntax to add sets <\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>set.union(set1<\/strong>,<strong>set2,....)<\/strong><\/pre>\n\n\n\n<p>The syntax to add lists<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>list(set.union(list1,list2,...)<\/strong><\/pre>\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>list1- The elements present in list 1<\/p>\n\n\n\n<p>list2 &#8211; The elements present in list 2<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-returns\"><span class=\"ez-toc-section\" id=\"Returns\"><\/span>Returns<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>output list &#8211; The list that contains the elements present is list1 and list2.<\/p>\n\n\n<div class=\"monsterinsights-inline-popular-posts monsterinsights-inline-popular-posts-kilo monsterinsights-popular-posts-styled\" ><div class=\"monsterinsights-inline-popular-posts-text\"><span class=\"monsterinsights-inline-popular-posts-label\" >Popular now<\/span><span class=\"monsterinsights-inline-popular-posts-border\" ><\/span><span class=\"monsterinsights-inline-popular-posts-border-2\" ><\/span><div class=\"monsterinsights-inline-popular-posts-post\"><a class=\"monsterinsights-inline-popular-posts-title\"  href=\"https:\/\/www.pythonpool.com\/fixed-typeerror-cant-compare-datetime-datetime-to-datetime-date\/\">[Fixed] typeerror can&#8217;t compare datetime.datetime to datetime.date<\/a><\/div><\/div><\/div><p><\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"h-union-of-two-lists-with-duplicate-values\"><span class=\"ez-toc-section\" id=\"Union_of_two_lists_with_duplicate_values\"><\/span>Union of two lists with duplicate values<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-code\"><span class=\"ez-toc-section\" id=\"Code\"><\/span>Code<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nlst1=&#x5B;2,3,4]\nlst2=&#x5B;4,6,7]\nunion=list(set().union(lst1,lst2))\nprint(&quot;\\nThe union of two list is:&quot;,union)\n<\/pre><\/div>\n\n\n<p>The given code is useful to add elements of two lists. Here we are declaring two lists as lst1 and lst2. Giving the elements in both lists. The list contains the duplicate values. A duplicate value is nothing but repeated values. Union function doesn&#8217;t return the duplicate values. The elements in the union functions are unique.<\/p>\n\n\n\n<p class=\"has-medium-font-size\" id=\"h-output\"><strong>Output<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">The union of two list is: [2, 3, 4, 6, 7]<\/pre>\n\n\n<div class=\"monsterinsights-inline-popular-posts monsterinsights-inline-popular-posts-golf monsterinsights-popular-posts-styled\" ><div class=\"monsterinsights-inline-popular-posts-text\"><span class=\"monsterinsights-inline-popular-posts-label\" >Popular now<\/span><span class=\"monsterinsights-inline-popular-posts-border\" ><\/span><span class=\"monsterinsights-inline-popular-posts-border-2\" ><\/span><div class=\"monsterinsights-inline-popular-posts-post\"><a class=\"monsterinsights-inline-popular-posts-title\" style=\"font-size:18px;\" href=\"https:\/\/www.pythonpool.com\/fixed-nameerror-name-unicode-is-not-defined\/\">[Fixed] nameerror: name Unicode is not defined<\/a><\/div><\/div><\/div><p><\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"h-union-of-two-list-without-duplicate-values\"><span class=\"ez-toc-section\" id=\"Union_of_two_list_without_duplicate_values\"><\/span>Union of two list without duplicate values<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-code-1\"><span class=\"ez-toc-section\" id=\"Code-2\"><\/span>Code<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nlst1=&#x5B;2,3,4]\nlst2=&#x5B;5,6,7]\nunion=list(set().union(lst1,lst2))\nprint(&quot;\\nThe union of two list is:&quot;,union)\n<\/pre><\/div>\n\n\n<p>The given code is useful to add elements of two lists. Here we are declaring two lists as lst1 and lst2. Giving the elements in both lists. The list doesn&#8217;t contain the duplicate value. So it will return all the elements present in both lists.<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Output<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">The union of two list is: [2, 3, 4, 5, 6, 7]<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-union-of-three-lists-with-duplicate-values\"><span class=\"ez-toc-section\" id=\"Union_of_three_lists_with_duplicate_values\"><\/span>Union of three lists with duplicate values<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-code-2\"><span class=\"ez-toc-section\" id=\"Code-3\"><\/span>Code<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nlst1=&#x5B;2,3,4]\nlst2=&#x5B;5,6,7]\nlst3=&#x5B;7,4,8]\nunion=list(set().union(lst1,lst2,lst3))\nprint(&quot;\\nThe union of three list is:&quot;,union)\n<\/pre><\/div>\n\n\n<p>The given code is useful to add elements of two lists. Here we are declaring two lists as lst1, lst2, and lst3. Giving the elements in all the lists. The list contains the duplicate values. A duplicate value is nothing but repeated values. Union function doesn&#8217;t return the duplicate values. The elements in the union functions are unique.<\/p>\n\n\n\n<p class=\"has-medium-font-size\" id=\"h-output-1\"><strong>Output<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">The union of three list is: [2, 3, 4, 5, 6, 7, 8]<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-union-of-three-list-without-duplicate-values\"><span class=\"ez-toc-section\" id=\"Union_of_three_list_without_duplicate_values\"><\/span>Union of three list without duplicate values.<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-code-3\"><span class=\"ez-toc-section\" id=\"Code-4\"><\/span>Code<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nlst1=&#x5B;2,3,4]\nlst2=&#x5B;5,6,7]\nlst3=&#x5B;1,8,9]\nunion=list(set().union(lst1,lst2,lst3))\nprint(&quot;\\nThe union of three list is:&quot;,union)\n<\/pre><\/div>\n\n\n<p>The given code is useful to add elements of two lists. Here we are declaring two lists as lst1, lst2, and lst3. Giving the elements in all the lists. The list doesn&#8217;t contain the duplicate value. So it will return all the elements present in all the lists.<\/p>\n\n\n\n<p class=\"has-medium-font-size\" id=\"h-output-2\"><strong>Output<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">The union of three list is: [1, 2, 3, 4, 5, 6, 7, 8, 9]<\/pre>\n\n\n<div class=\"monsterinsights-inline-popular-posts monsterinsights-inline-popular-posts-alpha monsterinsights-popular-posts-styled\" ><div class=\"monsterinsights-inline-popular-posts-text\"><span class=\"monsterinsights-inline-popular-posts-label\" >Trending<\/span><div class=\"monsterinsights-inline-popular-posts-post\"><a class=\"monsterinsights-inline-popular-posts-title\"  href=\"https:\/\/www.pythonpool.com\/solved-runtimeerror-cuda-error-invalid-device-ordinal\/\">[Solved] runtimeerror: cuda error: invalid device ordinal<\/a><\/div><\/div><\/div><p><\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"h-faqs-related-to-python-union-of-lists\"><span class=\"ez-toc-section\" id=\"FAQs_Related_to_Python_Union_of_Lists\"><\/span>FAQs Related to Python Union of Lists<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1627116318049\"><strong class=\"schema-faq-question\">1. What is the syntax for the union() function?<\/strong> <p class=\"schema-faq-answer\">The syntax for union() function is <br\/> <strong>list(set.union(list1,list2,&#8230;)<\/strong> <\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1627116834910\"><strong class=\"schema-faq-question\"> <strong>2. What is the purpose of the union() function?<\/strong>  <\/strong> <p class=\"schema-faq-answer\">The function &#8220;union()&#8221; is\u00a0used to join two or more sets of lists.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1627117274154\"><strong class=\"schema-faq-question\">3.What does the union() function do in python?<\/strong> <p class=\"schema-faq-answer\"> The union() function returns the new list containing all the elements present in the input. <\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1627117504529\"><strong class=\"schema-faq-question\">4. Does the union() function returns the duplicate value?<\/strong> <p class=\"schema-faq-answer\">No, the union function does not return the duplicate value. The elements in the union function are unique.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1627117574302\"><strong class=\"schema-faq-question\">5.Which operator is used for union function?<\/strong> <p class=\"schema-faq-answer\">The <strong>&#8220;|&#8221; <\/strong>operator is used for the union function.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1627129370913\"><strong class=\"schema-faq-question\">6. What is mean by duplicate value?<\/strong> <p class=\"schema-faq-answer\">Duplicate value means repeated values in the list.<\/p> <\/div> <\/div>\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>Here we have seen the union of two or more lists in Python. It is possible to union a set and <a href=\"https:\/\/docs.python.org\/3\/c-api\/tuple.html\" target=\"_blank\" rel=\"noreferrer noopener\">tuples <\/a>also. In most of the conditions, union function is needed. The above shown is just an example of a union of the list. We can do something more using the union function. It is a built-in function available in a python library.<\/p>\n\n\n<div class=\"monsterinsights-widget-popular-posts monsterinsights-widget-popular-posts-charlie monsterinsights-popular-posts-styled monsterinsights-widget-popular-posts-columns-1\"><h2 class=\"monsterinsights-widget-popular-posts-widget-title\"><span class=\"ez-toc-section\" id=\"Trending_Right_Now\"><\/span>Trending Right Now<span class=\"ez-toc-section-end\"><\/span><\/h2><ul class=\"monsterinsights-widget-popular-posts-list\"><li style=\"background-color:#EEEEEE;border-color:#CD3034;\"><a href=\"https:\/\/www.pythonpool.com\/f-string-unmatched\/\"><div class=\"monsterinsights-widget-popular-posts-text\"><span class=\"monsterinsights-widget-popular-posts-title\" style=\"color:#000000;font-size:18px;\">Frustrated with Unmatched f-strings? Master the Art of Formatting<\/span><div class=\"monsterinsights-widget-popular-posts-meta\" ><\/div><\/div><\/a><\/li><li style=\"background-color:#EEEEEE;border-color:#CD3034;\"><a href=\"https:\/\/www.pythonpool.com\/supercharge-your-code-with-python-rtype\/\"><div class=\"monsterinsights-widget-popular-posts-text\"><span class=\"monsterinsights-widget-popular-posts-title\" style=\"color:#000000;font-size:18px;\">Supercharge Your Code with Python Rtype<\/span><div class=\"monsterinsights-widget-popular-posts-meta\" ><\/div><\/div><\/a><\/li><li style=\"background-color:#EEEEEE;border-color:#CD3034;\"><a href=\"https:\/\/www.pythonpool.com\/what-does-split-do-in-python\/\"><div class=\"monsterinsights-widget-popular-posts-text\"><span class=\"monsterinsights-widget-popular-posts-title\" style=\"color:#000000;font-size:18px;\">What does split do in Python?<\/span><div class=\"monsterinsights-widget-popular-posts-meta\" ><\/div><\/div><\/a><\/li><li style=\"background-color:#EEEEEE;border-color:#CD3034;\"><a href=\"https:\/\/www.pythonpool.com\/python-heapq\/\"><div class=\"monsterinsights-widget-popular-posts-text\"><span class=\"monsterinsights-widget-popular-posts-title\" style=\"color:#000000;font-size:18px;\">Python Heapq: Boost Your Efficiency with Heap Operations!<\/span><div class=\"monsterinsights-widget-popular-posts-meta\" ><\/div><\/div><\/a><\/li><\/ul><\/div><p><\/p>","protected":false},"excerpt":{"rendered":"<p>Here we are going to see the union of two or more lists in Python. Union means taking the elements in the several lists and &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"Union of Two or more lists in Python\" class=\"read-more button\" href=\"https:\/\/www.pythonpool.com\/python-union-of-lists\/#more-14840\" aria-label=\"More on Union of Two or more lists in Python\">Read more<\/a><\/p>\n","protected":false},"author":22,"featured_media":14875,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[15],"tags":[4366,4365,4364,4363],"class_list":["post-14840","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-python-union-of-two-lists","tag-union-of-2-lists-in-python","tag-union-of-lists-python","tag-union-of-two-lists-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>Union of Two or more lists in Python - Python Pool<\/title>\n<meta name=\"description\" content=\"In python, Union means taking the elements in the several lists and put them in a single list. We can add two or more two lists in Python\" \/>\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-union-of-lists\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Union of Two or more lists in Python\" \/>\n<meta property=\"og:description\" content=\"Here we are going to see the union of two or more lists in Python. Union means taking the elements in the several lists and put them in a single list. We\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.pythonpool.com\/python-union-of-lists\/\" \/>\n<meta property=\"og:site_name\" content=\"Python Pool\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-24T15:09:57+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-07-24T15:10:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/07\/Union-of-Two-or-more-lists-in-Python.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"Priyalakshmi\" \/>\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=\"Priyalakshmi\" \/>\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-union-of-lists\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.pythonpool.com\/python-union-of-lists\/\"},\"author\":{\"name\":\"Priyalakshmi\",\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/person\/83e6e22a6c461cc1a8445bb473db2f20\"},\"headline\":\"Union of Two or more lists in Python\",\"datePublished\":\"2021-07-24T15:09:57+00:00\",\"dateModified\":\"2021-07-24T15:10:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.pythonpool.com\/python-union-of-lists\/\"},\"wordCount\":651,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.pythonpool.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.pythonpool.com\/python-union-of-lists\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/07\/Union-of-Two-or-more-lists-in-Python.webp\",\"keywords\":[\"python union of two lists\",\"union of 2 lists in python\",\"union of lists python\",\"union of two lists python\"],\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.pythonpool.com\/python-union-of-lists\/#respond\"]}]},{\"@type\":[\"WebPage\",\"FAQPage\"],\"@id\":\"https:\/\/www.pythonpool.com\/python-union-of-lists\/\",\"url\":\"https:\/\/www.pythonpool.com\/python-union-of-lists\/\",\"name\":\"Union of Two or more lists in Python - Python Pool\",\"isPartOf\":{\"@id\":\"https:\/\/www.pythonpool.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.pythonpool.com\/python-union-of-lists\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.pythonpool.com\/python-union-of-lists\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/07\/Union-of-Two-or-more-lists-in-Python.webp\",\"datePublished\":\"2021-07-24T15:09:57+00:00\",\"dateModified\":\"2021-07-24T15:10:00+00:00\",\"description\":\"In python, Union means taking the elements in the several lists and put them in a single list. We can add two or more two lists in Python\",\"breadcrumb\":{\"@id\":\"https:\/\/www.pythonpool.com\/python-union-of-lists\/#breadcrumb\"},\"mainEntity\":[{\"@id\":\"https:\/\/www.pythonpool.com\/python-union-of-lists\/#faq-question-1627116318049\"},{\"@id\":\"https:\/\/www.pythonpool.com\/python-union-of-lists\/#faq-question-1627116834910\"},{\"@id\":\"https:\/\/www.pythonpool.com\/python-union-of-lists\/#faq-question-1627117274154\"},{\"@id\":\"https:\/\/www.pythonpool.com\/python-union-of-lists\/#faq-question-1627117504529\"},{\"@id\":\"https:\/\/www.pythonpool.com\/python-union-of-lists\/#faq-question-1627117574302\"},{\"@id\":\"https:\/\/www.pythonpool.com\/python-union-of-lists\/#faq-question-1627129370913\"}],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.pythonpool.com\/python-union-of-lists\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.pythonpool.com\/python-union-of-lists\/#primaryimage\",\"url\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/07\/Union-of-Two-or-more-lists-in-Python.webp\",\"contentUrl\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/07\/Union-of-Two-or-more-lists-in-Python.webp\",\"width\":1200,\"height\":628,\"caption\":\"python union of lists\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.pythonpool.com\/python-union-of-lists\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.pythonpool.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Union of Two or more lists 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\/83e6e22a6c461cc1a8445bb473db2f20\",\"name\":\"Priyalakshmi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8f1aadb3b77a89fe5776d41fb52aec63200d0e68e92c71cb9aafac7fb4456696?s=96&d=wavatar&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/8f1aadb3b77a89fe5776d41fb52aec63200d0e68e92c71cb9aafac7fb4456696?s=96&d=wavatar&r=g\",\"caption\":\"Priyalakshmi\"}},{\"@type\":\"Question\",\"@id\":\"https:\/\/www.pythonpool.com\/python-union-of-lists\/#faq-question-1627116318049\",\"position\":1,\"url\":\"https:\/\/www.pythonpool.com\/python-union-of-lists\/#faq-question-1627116318049\",\"name\":\"1. What is the syntax for the union() function?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"The syntax for union() function is <br \/> <strong>list(set.union(list1,list2,...)<\/strong> \",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Question\",\"@id\":\"https:\/\/www.pythonpool.com\/python-union-of-lists\/#faq-question-1627116834910\",\"position\":2,\"url\":\"https:\/\/www.pythonpool.com\/python-union-of-lists\/#faq-question-1627116834910\",\"name\":\"2. What is the purpose of the union() function?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"The function \\\"union()\\\" is\u00a0used to join two or more sets of lists.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Question\",\"@id\":\"https:\/\/www.pythonpool.com\/python-union-of-lists\/#faq-question-1627117274154\",\"position\":3,\"url\":\"https:\/\/www.pythonpool.com\/python-union-of-lists\/#faq-question-1627117274154\",\"name\":\"3.What does the union() function do in python?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\" The union() function returns the new list containing all the elements present in the input. \",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Question\",\"@id\":\"https:\/\/www.pythonpool.com\/python-union-of-lists\/#faq-question-1627117504529\",\"position\":4,\"url\":\"https:\/\/www.pythonpool.com\/python-union-of-lists\/#faq-question-1627117504529\",\"name\":\"4. Does the union() function returns the duplicate value?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"No, the union function does not return the duplicate value. The elements in the union function are unique.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Question\",\"@id\":\"https:\/\/www.pythonpool.com\/python-union-of-lists\/#faq-question-1627117574302\",\"position\":5,\"url\":\"https:\/\/www.pythonpool.com\/python-union-of-lists\/#faq-question-1627117574302\",\"name\":\"5.Which operator is used for union function?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"The <strong>\\\"|\\\" <\/strong>operator is used for the union function.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Question\",\"@id\":\"https:\/\/www.pythonpool.com\/python-union-of-lists\/#faq-question-1627129370913\",\"position\":6,\"url\":\"https:\/\/www.pythonpool.com\/python-union-of-lists\/#faq-question-1627129370913\",\"name\":\"6. What is mean by duplicate value?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Duplicate value means repeated values in the list.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Union of Two or more lists in Python - Python Pool","description":"In python, Union means taking the elements in the several lists and put them in a single list. We can add two or more two lists in Python","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-union-of-lists\/","og_locale":"en_US","og_type":"article","og_title":"Union of Two or more lists in Python","og_description":"Here we are going to see the union of two or more lists in Python. Union means taking the elements in the several lists and put them in a single list. We","og_url":"https:\/\/www.pythonpool.com\/python-union-of-lists\/","og_site_name":"Python Pool","article_published_time":"2021-07-24T15:09:57+00:00","article_modified_time":"2021-07-24T15:10:00+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/07\/Union-of-Two-or-more-lists-in-Python.webp","type":"image\/webp"}],"author":"Priyalakshmi","twitter_card":"summary_large_image","twitter_creator":"@pythonpool","twitter_site":"@pythonpool","twitter_misc":{"Written by":"Priyalakshmi","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.pythonpool.com\/python-union-of-lists\/#article","isPartOf":{"@id":"https:\/\/www.pythonpool.com\/python-union-of-lists\/"},"author":{"name":"Priyalakshmi","@id":"https:\/\/www.pythonpool.com\/#\/schema\/person\/83e6e22a6c461cc1a8445bb473db2f20"},"headline":"Union of Two or more lists in Python","datePublished":"2021-07-24T15:09:57+00:00","dateModified":"2021-07-24T15:10:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.pythonpool.com\/python-union-of-lists\/"},"wordCount":651,"commentCount":0,"publisher":{"@id":"https:\/\/www.pythonpool.com\/#organization"},"image":{"@id":"https:\/\/www.pythonpool.com\/python-union-of-lists\/#primaryimage"},"thumbnailUrl":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/07\/Union-of-Two-or-more-lists-in-Python.webp","keywords":["python union of two lists","union of 2 lists in python","union of lists python","union of two lists python"],"articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.pythonpool.com\/python-union-of-lists\/#respond"]}]},{"@type":["WebPage","FAQPage"],"@id":"https:\/\/www.pythonpool.com\/python-union-of-lists\/","url":"https:\/\/www.pythonpool.com\/python-union-of-lists\/","name":"Union of Two or more lists in Python - Python Pool","isPartOf":{"@id":"https:\/\/www.pythonpool.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.pythonpool.com\/python-union-of-lists\/#primaryimage"},"image":{"@id":"https:\/\/www.pythonpool.com\/python-union-of-lists\/#primaryimage"},"thumbnailUrl":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/07\/Union-of-Two-or-more-lists-in-Python.webp","datePublished":"2021-07-24T15:09:57+00:00","dateModified":"2021-07-24T15:10:00+00:00","description":"In python, Union means taking the elements in the several lists and put them in a single list. We can add two or more two lists in Python","breadcrumb":{"@id":"https:\/\/www.pythonpool.com\/python-union-of-lists\/#breadcrumb"},"mainEntity":[{"@id":"https:\/\/www.pythonpool.com\/python-union-of-lists\/#faq-question-1627116318049"},{"@id":"https:\/\/www.pythonpool.com\/python-union-of-lists\/#faq-question-1627116834910"},{"@id":"https:\/\/www.pythonpool.com\/python-union-of-lists\/#faq-question-1627117274154"},{"@id":"https:\/\/www.pythonpool.com\/python-union-of-lists\/#faq-question-1627117504529"},{"@id":"https:\/\/www.pythonpool.com\/python-union-of-lists\/#faq-question-1627117574302"},{"@id":"https:\/\/www.pythonpool.com\/python-union-of-lists\/#faq-question-1627129370913"}],"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.pythonpool.com\/python-union-of-lists\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pythonpool.com\/python-union-of-lists\/#primaryimage","url":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/07\/Union-of-Two-or-more-lists-in-Python.webp","contentUrl":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/07\/Union-of-Two-or-more-lists-in-Python.webp","width":1200,"height":628,"caption":"python union of lists"},{"@type":"BreadcrumbList","@id":"https:\/\/www.pythonpool.com\/python-union-of-lists\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.pythonpool.com\/"},{"@type":"ListItem","position":2,"name":"Union of Two or more lists 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\/83e6e22a6c461cc1a8445bb473db2f20","name":"Priyalakshmi","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pythonpool.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/8f1aadb3b77a89fe5776d41fb52aec63200d0e68e92c71cb9aafac7fb4456696?s=96&d=wavatar&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8f1aadb3b77a89fe5776d41fb52aec63200d0e68e92c71cb9aafac7fb4456696?s=96&d=wavatar&r=g","caption":"Priyalakshmi"}},{"@type":"Question","@id":"https:\/\/www.pythonpool.com\/python-union-of-lists\/#faq-question-1627116318049","position":1,"url":"https:\/\/www.pythonpool.com\/python-union-of-lists\/#faq-question-1627116318049","name":"1. What is the syntax for the union() function?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"The syntax for union() function is <br \/> <strong>list(set.union(list1,list2,...)<\/strong> ","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/www.pythonpool.com\/python-union-of-lists\/#faq-question-1627116834910","position":2,"url":"https:\/\/www.pythonpool.com\/python-union-of-lists\/#faq-question-1627116834910","name":"2. What is the purpose of the union() function?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"The function \"union()\" is\u00a0used to join two or more sets of lists.","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/www.pythonpool.com\/python-union-of-lists\/#faq-question-1627117274154","position":3,"url":"https:\/\/www.pythonpool.com\/python-union-of-lists\/#faq-question-1627117274154","name":"3.What does the union() function do in python?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":" The union() function returns the new list containing all the elements present in the input. ","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/www.pythonpool.com\/python-union-of-lists\/#faq-question-1627117504529","position":4,"url":"https:\/\/www.pythonpool.com\/python-union-of-lists\/#faq-question-1627117504529","name":"4. Does the union() function returns the duplicate value?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"No, the union function does not return the duplicate value. The elements in the union function are unique.","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/www.pythonpool.com\/python-union-of-lists\/#faq-question-1627117574302","position":5,"url":"https:\/\/www.pythonpool.com\/python-union-of-lists\/#faq-question-1627117574302","name":"5.Which operator is used for union function?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"The <strong>\"|\" <\/strong>operator is used for the union function.","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/www.pythonpool.com\/python-union-of-lists\/#faq-question-1627129370913","position":6,"url":"https:\/\/www.pythonpool.com\/python-union-of-lists\/#faq-question-1627129370913","name":"6. What is mean by duplicate value?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"Duplicate value means repeated values in the list.","inLanguage":"en-US"},"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/posts\/14840","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\/22"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/comments?post=14840"}],"version-history":[{"count":22,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/posts\/14840\/revisions"}],"predecessor-version":[{"id":14883,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/posts\/14840\/revisions\/14883"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/media\/14875"}],"wp:attachment":[{"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/media?parent=14840"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/categories?post=14840"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/tags?post=14840"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}