{"id":1586,"date":"2023-06-26T11:11:55","date_gmt":"2023-06-26T11:11:55","guid":{"rendered":"https:\/\/www.copahost.com\/blog\/?p=1586"},"modified":"2023-07-16T10:55:15","modified_gmt":"2023-07-16T10:55:15","slug":"python-remove-items-from-list","status":"publish","type":"post","link":"https:\/\/www.copahost.com\/blog\/python-remove-items-from-list\/","title":{"rendered":"How to remove items from a list collection in Python"},"content":{"rendered":"<p><span style=\"font-size: 16px;\">Python is a high-level programming language. It is one of the most popular and widely used programming languages. Python comes with many features. And it&#8217;s syntax is very simple. One of the most commonly used features of python is its collections. In this article, we will show how to<\/span><span style=\"font-size: 16px;\">\u00a0<\/span><span style=\"font-size: 16px;\">remove items from a list collection in <a href=\"https:\/\/www.copahost.com\/blog\/what-is-python\/\">Python<\/a>. There are four types of collections that we can use to store data.<\/span><\/p>\n<h3>Topics in this article<\/h3>\n<ul>\n<li>List collection in python<\/li>\n<li>Remove item from the list\n<ul>\n<li>The remove method<\/li>\n<li>The del keyword<\/li>\n<li>The pop method<\/li>\n<li>The clear method<\/li>\n<\/ul>\n<\/li>\n<li>Conclusion<\/li>\n<\/ul>\n<p>1. List: An ordered and changeable collection.<br \/>\n2. Tuple: An ordered and unchangeable collection.<br \/>\n3. Set: An unordered and unindexed collection.<br \/>\n4. Dictionary: \u00a0An unordered, changeable and indexed collection.<\/p>\n<p>List and tuple allow duplicate values while the set and dictionary do not allow duplicate values. Out of these four, the List of the most widely used collection and in this article, we learn more about the list and how to remove items from it.<\/p>\n<h3>List collection in python<\/h3>\n<p>A list collection in <a href=\"https:\/\/www.techrepublic.com\/article\/python-is-eating-the-world-how-one-developers-side-project-became-the-hottest-programming-language-on-the-planet\/\" target=\"_blank\" rel=\"noopener noreferrer\">python<\/a> that is used to store any kind of data. A list in python is ordered and we can change it according to our requirements. Square brackets are used for writing lists in python.<\/p>\n<pre class=\"lang:default decode:true\">firstList = [1,2,3,4,5]\n<\/pre>\n<p>We created a list containing five numbers. We can add any type of values in a list. The following python <a href=\"https:\/\/www.copahost.com\/blog\/javascript-beautifiers\/\">code<\/a> has a list containing values of different types.<\/p>\n<pre class=\"lang:default decode:true\">firstList = [\"Python\", 100, true]<\/pre>\n<p>We can perform various operations on a list in python. In this article, we will focus on the ways of removing items from a list.<\/p>\n<h3>Remove item from a list<\/h3>\n<p>There are various ways of removing items from a list. We can remove specific items from a list, or we can remove the last items from a \u00a0list. We can also <a href=\"https:\/\/www.copahost.com\/blog\/rm-rf-linux\/\">remove<\/a> everything from a list or delete the entire list. Let&#8217;s discuss these ways with examples.<\/p>\n<h4>The remove method<\/h4>\n<p>The most common way of removing an item from a list is by using the <a href=\"https:\/\/www.tutorialspoint.com\/python\/list_remove.htm\" target=\"_blank\" rel=\"noopener noreferrer\">remove method<\/a>. We can remove a specific item from a list using this method.<\/p>\n<pre class=\"lang:default decode:true\">snakeList = [\"Python\", \"Cobra\", \"Anaconda\", \"Boa\", \"Mamba\"]\nsnakeList.remove(\"Cobra\")\nprint(snakeList)<\/pre>\n<p>The output is:<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter wp-image-1587 size-full\" style=\"border: 2px solid black;\" src=\"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/08\/py1.png\" alt=\"remove items from list collection in Python\" width=\"922\" height=\"124\" srcset=\"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/08\/py1.png 922w, https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/08\/py1-300x40.png 300w, https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/08\/py1-768x103.png 768w\" sizes=\"(max-width: 922px) 100vw, 922px\" \/><\/p>\n<p>In the above python code, we created a list named snakeList and added the names of five snakes in it. Further, we used the remove method and passed the name of the second item, i.e. Cobra. And the Cobra is removed from the snakeList.<\/p>\n<h4>The del keyword<\/h4>\n<p>The del keyword is another common way of removing items from a list. What if we want to remove an item from the list using its index? The del keyword can the job. Let&#8217;s understand the del keyword with an example.<\/p>\n<pre class=\"lang:default decode:true\">snakeList = [\"Python\", \"Cobra\", \"Anaconda\", \"Boa\", \"Mamba\"]\ndel snakeList[1]\nprint(snakeList)\n<\/pre>\n<p>The output is:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-1588 size-full\" style=\"border: 2px solid black;\" src=\"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/08\/py2.png\" alt=\"python\" width=\"921\" height=\"125\" srcset=\"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/08\/py2.png 921w, https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/08\/py2-300x41.png 300w, https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/08\/py2-768x104.png 768w\" sizes=\"(max-width: 921px) 100vw, 921px\" \/><\/p>\n<p>We used the same snakeList and this time again, we will remove Cobra from it. This time by using its index. The item we want to remove is on the first index(because index in a list starts from zero). We used the del keyword followed by the name of the list. The index is written between square brackets. This is how items are removed by using the del keyword.<\/p>\n<p>Apart from removing an item, the del keyword is also used to delete the list completely.<\/p>\n<pre class=\"lang:default decode:true\">snakeList = [\"Python\", \"Cobra\", \"Anaconda\", \"Boa\", \"Mamba\"]\ndel snakeList\n<\/pre>\n<p>To delete the snakeList completely, we used the del keyword followed by the name of the list. The snakeList does not exist anymore.<\/p>\n<h4>The pop method<\/h4>\n<p>The remove method and del keyword are used to remove any specific item from the list. But pop works differently. We use the pop method to remove the last item from the list.<\/p>\n<pre class=\"lang:default decode:true\">snakeList = [\"Python\", \"Cobra\", \"Anaconda\", \"Boa\", \"Mamba\"]\nsnakeList.pop()\nprint(snakeList)\n<\/pre>\n<p>The output is:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-1589 size-full\" style=\"border: 2px solid black;\" src=\"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/08\/py3.png\" alt=\"remove items from a list in Python\" width=\"918\" height=\"126\" srcset=\"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/08\/py3.png 918w, https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/08\/py3-300x41.png 300w, https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/08\/py3-768x105.png 768w\" sizes=\"(max-width: 918px) 100vw, 918px\" \/><\/p>\n<p>We used the pop method to remove the last item from the snakeList. The item, Mamba, does not exist anymore in the snakeList. Basically, we use the pop method to remove the last item of the list, but we can also use it in one other way.<\/p>\n<p>We can also use the <a href=\"https:\/\/www.programiz.com\/python-programming\/methods\/list\/pop\" target=\"_blank\" rel=\"noopener noreferrer\">pop method<\/a> to remove an item by using its index as we did with the del keyword. The only difference is, the pop method returns the removed item. Let&#8217;s verify it.<\/p>\n<pre class=\"lang:default decode:true\">snakeList = [\"Python\", \"Cobra\", \"Anaconda\", \"Boa\", \"Mamba\"]\nremovedItem = snakeList.pop(1)\nprint(removedItem)<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1590 size-full\" style=\"border: 2px solid black;\" src=\"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/08\/py4.png\" alt=\"python\" width=\"921\" height=\"130\" srcset=\"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/08\/py4.png 921w, https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/08\/py4-300x42.png 300w, https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/08\/py4-768x108.png 768w\" sizes=\"(max-width: 921px) 100vw, 921px\" \/><\/p>\n<p>We used the pop method to remove the item at the first index of the snakeList by passing one in the pop method. This time, we used a variable, removedItem to store the returned value from the pop method. And what is the returned value? The same item that was removed from the list.<\/p>\n<h4>The clear method<\/h4>\n<p>We discussed how to remove items from a list by using various methods such as remove, pop and del keyword. We also learned how to delete a list completely. But what if we want to empty a list? An empty list means, a list with no data. We can use the <a href=\"https:\/\/www.programiz.com\/python-programming\/methods\/list\/clear\" target=\"_blank\" rel=\"noopener noreferrer\">clear method<\/a> for it.<\/p>\n<pre class=\"lang:default decode:true\">snakeList = [\"Python\", \"Cobra\", \"Anaconda\", \"Boa\", \"Mamba\"]\nsnakeList.clear()\nprint(snakeList)\n<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1591 size-full\" style=\"border: 2px solid black;\" src=\"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/08\/py5.png\" alt=\"remove\" width=\"922\" height=\"130\" srcset=\"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/08\/py5.png 922w, https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/08\/py5-300x42.png 300w, https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/08\/py5-768x108.png 768w\" sizes=\"(max-width: 922px) 100vw, 922px\" \/><\/p>\n<p>The snakeList contains the names of five snakes. We used the clear method to empty the snakeList. Now, do not confuse it with the working of the del keyword.\u00a0 The del keyword deletes the list completely from the memory, but the clear method only empties it. The list still exists but without any data.<\/p>\n<h3>Conclusion: how to remove items from a list in Python<\/h3>\n<p>The list collection is one of the most simple ways of storing data. We can perform insertion and deletion very easily. In this article, we discussed the list collection and different ways of removing items from a list in Python. The remove method is one common and simple way. Other ways such as the pop method and del keywords are also helpful. We also discussed the functioning of the del keyword to delete a list completely and, the clear method to empty a list.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Python is a high-level programming language. It is one of the most popular and widely used programming languages. Python comes with many features. And it&#8217;s syntax is very simple. One of the most commonly used features of python is its collections. In this article, we will show how to\u00a0remove items from a list collection in [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1586","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to remove items from a list collection in Python - Copahost<\/title>\n<meta name=\"description\" content=\"Working on python list collection? Learn more about python list and how to remove items from it. Learn about various methods with proper examples.\" \/>\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.copahost.com\/blog\/python-remove-items-from-list\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to remove items from a list collection in Python - Copahost\" \/>\n<meta property=\"og:description\" content=\"Working on python list collection? Learn more about python list and how to remove items from it. Learn about various methods with proper examples.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.copahost.com\/blog\/python-remove-items-from-list\/\" \/>\n<meta property=\"og:site_name\" content=\"Copahost\" \/>\n<meta property=\"article:published_time\" content=\"2023-06-26T11:11:55+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-07-16T10:55:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/08\/py1.png\" \/>\n<meta name=\"author\" content=\"Gustavo Gallas\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Gustavo Gallas\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.copahost.com\/blog\/python-remove-items-from-list\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.copahost.com\/blog\/python-remove-items-from-list\/\"},\"author\":{\"name\":\"Gustavo Gallas\",\"@id\":\"https:\/\/www.copahost.com\/blog\/#\/schema\/person\/386b3f1f79299d43f4ceb33d26428246\"},\"headline\":\"How to remove items from a list collection in Python\",\"datePublished\":\"2023-06-26T11:11:55+00:00\",\"dateModified\":\"2023-07-16T10:55:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.copahost.com\/blog\/python-remove-items-from-list\/\"},\"wordCount\":946,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.copahost.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.copahost.com\/blog\/python-remove-items-from-list\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/08\/py1.png\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.copahost.com\/blog\/python-remove-items-from-list\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.copahost.com\/blog\/python-remove-items-from-list\/\",\"url\":\"https:\/\/www.copahost.com\/blog\/python-remove-items-from-list\/\",\"name\":\"How to remove items from a list collection in Python - Copahost\",\"isPartOf\":{\"@id\":\"https:\/\/www.copahost.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.copahost.com\/blog\/python-remove-items-from-list\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.copahost.com\/blog\/python-remove-items-from-list\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/08\/py1.png\",\"datePublished\":\"2023-06-26T11:11:55+00:00\",\"dateModified\":\"2023-07-16T10:55:15+00:00\",\"description\":\"Working on python list collection? Learn more about python list and how to remove items from it. Learn about various methods with proper examples.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.copahost.com\/blog\/python-remove-items-from-list\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.copahost.com\/blog\/python-remove-items-from-list\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.copahost.com\/blog\/python-remove-items-from-list\/#primaryimage\",\"url\":\"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/08\/py1.png\",\"contentUrl\":\"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/08\/py1.png\",\"width\":922,\"height\":124},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.copahost.com\/blog\/python-remove-items-from-list\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.copahost.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to remove items from a list collection in Python\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.copahost.com\/blog\/#website\",\"url\":\"https:\/\/www.copahost.com\/blog\/\",\"name\":\"Copahost\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.copahost.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.copahost.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.copahost.com\/blog\/#organization\",\"name\":\"Copahost\",\"url\":\"https:\/\/www.copahost.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.copahost.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2016\/03\/copahostlogo.png\",\"contentUrl\":\"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2016\/03\/copahostlogo.png\",\"width\":223,\"height\":40,\"caption\":\"Copahost\"},\"image\":{\"@id\":\"https:\/\/www.copahost.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.copahost.com\/blog\/#\/schema\/person\/386b3f1f79299d43f4ceb33d26428246\",\"name\":\"Gustavo Gallas\",\"description\":\"Graduated in Computing at PUC-Rio, Brazil. Specialized in IT, networking, systems administration and human and organizational development\u200b. Also have brewing skills.\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/gustavo-gallas-107926196\/\"],\"url\":\"https:\/\/www.copahost.com\/blog\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to remove items from a list collection in Python - Copahost","description":"Working on python list collection? Learn more about python list and how to remove items from it. Learn about various methods with proper examples.","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.copahost.com\/blog\/python-remove-items-from-list\/","og_locale":"en_US","og_type":"article","og_title":"How to remove items from a list collection in Python - Copahost","og_description":"Working on python list collection? Learn more about python list and how to remove items from it. Learn about various methods with proper examples.","og_url":"https:\/\/www.copahost.com\/blog\/python-remove-items-from-list\/","og_site_name":"Copahost","article_published_time":"2023-06-26T11:11:55+00:00","article_modified_time":"2023-07-16T10:55:15+00:00","og_image":[{"url":"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/08\/py1.png"}],"author":"Gustavo Gallas","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Gustavo Gallas","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.copahost.com\/blog\/python-remove-items-from-list\/#article","isPartOf":{"@id":"https:\/\/www.copahost.com\/blog\/python-remove-items-from-list\/"},"author":{"name":"Gustavo Gallas","@id":"https:\/\/www.copahost.com\/blog\/#\/schema\/person\/386b3f1f79299d43f4ceb33d26428246"},"headline":"How to remove items from a list collection in Python","datePublished":"2023-06-26T11:11:55+00:00","dateModified":"2023-07-16T10:55:15+00:00","mainEntityOfPage":{"@id":"https:\/\/www.copahost.com\/blog\/python-remove-items-from-list\/"},"wordCount":946,"commentCount":0,"publisher":{"@id":"https:\/\/www.copahost.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.copahost.com\/blog\/python-remove-items-from-list\/#primaryimage"},"thumbnailUrl":"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/08\/py1.png","inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.copahost.com\/blog\/python-remove-items-from-list\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.copahost.com\/blog\/python-remove-items-from-list\/","url":"https:\/\/www.copahost.com\/blog\/python-remove-items-from-list\/","name":"How to remove items from a list collection in Python - Copahost","isPartOf":{"@id":"https:\/\/www.copahost.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.copahost.com\/blog\/python-remove-items-from-list\/#primaryimage"},"image":{"@id":"https:\/\/www.copahost.com\/blog\/python-remove-items-from-list\/#primaryimage"},"thumbnailUrl":"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/08\/py1.png","datePublished":"2023-06-26T11:11:55+00:00","dateModified":"2023-07-16T10:55:15+00:00","description":"Working on python list collection? Learn more about python list and how to remove items from it. Learn about various methods with proper examples.","breadcrumb":{"@id":"https:\/\/www.copahost.com\/blog\/python-remove-items-from-list\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.copahost.com\/blog\/python-remove-items-from-list\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.copahost.com\/blog\/python-remove-items-from-list\/#primaryimage","url":"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/08\/py1.png","contentUrl":"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/08\/py1.png","width":922,"height":124},{"@type":"BreadcrumbList","@id":"https:\/\/www.copahost.com\/blog\/python-remove-items-from-list\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.copahost.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to remove items from a list collection in Python"}]},{"@type":"WebSite","@id":"https:\/\/www.copahost.com\/blog\/#website","url":"https:\/\/www.copahost.com\/blog\/","name":"Copahost","description":"","publisher":{"@id":"https:\/\/www.copahost.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.copahost.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.copahost.com\/blog\/#organization","name":"Copahost","url":"https:\/\/www.copahost.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.copahost.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2016\/03\/copahostlogo.png","contentUrl":"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2016\/03\/copahostlogo.png","width":223,"height":40,"caption":"Copahost"},"image":{"@id":"https:\/\/www.copahost.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.copahost.com\/blog\/#\/schema\/person\/386b3f1f79299d43f4ceb33d26428246","name":"Gustavo Gallas","description":"Graduated in Computing at PUC-Rio, Brazil. Specialized in IT, networking, systems administration and human and organizational development\u200b. Also have brewing skills.","sameAs":["https:\/\/www.linkedin.com\/in\/gustavo-gallas-107926196\/"],"url":"https:\/\/www.copahost.com\/blog\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.copahost.com\/blog\/wp-json\/wp\/v2\/posts\/1586","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.copahost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.copahost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.copahost.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.copahost.com\/blog\/wp-json\/wp\/v2\/comments?post=1586"}],"version-history":[{"count":6,"href":"https:\/\/www.copahost.com\/blog\/wp-json\/wp\/v2\/posts\/1586\/revisions"}],"predecessor-version":[{"id":3442,"href":"https:\/\/www.copahost.com\/blog\/wp-json\/wp\/v2\/posts\/1586\/revisions\/3442"}],"wp:attachment":[{"href":"https:\/\/www.copahost.com\/blog\/wp-json\/wp\/v2\/media?parent=1586"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.copahost.com\/blog\/wp-json\/wp\/v2\/categories?post=1586"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.copahost.com\/blog\/wp-json\/wp\/v2\/tags?post=1586"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}