{"id":4023,"date":"2024-06-18T11:25:52","date_gmt":"2024-06-18T18:25:52","guid":{"rendered":"https:\/\/ioflood.com\/blog\/?p=4023"},"modified":"2024-06-27T14:18:24","modified_gmt":"2024-06-27T21:18:24","slug":"python-append-to-list","status":"publish","type":"post","link":"https:\/\/ioflood.com\/blog\/python-append-to-list\/","title":{"rendered":"[SOLVED]: How To Append to a List in Python?"},"content":{"rendered":"<div class=\"wp-block-image\">\n<figure class=\"alignright size-full is-resized\"><img decoding=\"async\" src=\"https:\/\/ioflood.com\/blog\/wp-content\/uploads\/2024\/06\/Image-of-programmers-utilizing-the-append-and-extend-functions-to-seamlessly-append-items-to-a-list-in-Python-300x300.jpg\" alt=\"Image of programmers utilizing the append and extend functions to seamlessly append items to a list in Python\" width=\"300\" height=\"300\" title=\"\"><\/figure>\n<\/div>\n<p>Appending elements to a list in Python is a fundamental operation for data manipulation at <a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/ioflood.com\/\">IOFLOOD<\/a>. This task allows for dynamic growth of data sets, making it essential for automating our processes. This article shares our techniques and best practices to empower our dedicated server customers in scripting data management processes on their <a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/ioflood.com\/bare-metal-cloud-server.php\">bare metal cloud<\/a> services.<\/p>\n<p>Whether you&#8217;re a beginner or have some Python experience under your belt, <strong>this comprehensive guide will walk you through the process. We&#8217;ll start from the basics and gradually delve into more advanced techniques.<\/strong> By the end of this article, you&#8217;ll gain a solid understanding of how to seamlessly append items to a list in Python.<\/p>\n<p>So let&#8217;s dive in and learn how to append items to a Python list!<\/p>\n<h2>TL;DR: How Do I Append to a List in Python?<\/h2>\n<blockquote><p>\n  The simplest way to append to a list in Python is by using the <code>append()<\/code> method with the syntax, <code>my_list.append(value)<\/code>. Here&#8217;s a quick illustration:\n<\/p><\/blockquote>\n<pre><code class=\"language-python line-numbers\">my_list = [1, 2, 3]\nmy_list.append(4)\nprint(my_list)\n# Output:\n# [1, 2, 3, 4]\n<\/code><\/pre>\n<p>In the example above, we start with a list named <code>my_list<\/code> containing the elements 1, 2, and 3. We then use the <code>append()<\/code> method to add the number 4 to the end of the list. When we print <code>my_list<\/code>, we can see that it now includes the number 4. This is the most basic way to append to a list in Python.<\/p>\n<blockquote><p>\n  For more in-depth exploration and advanced usage scenarios, keep reading. This guide will provide you with all the knowledge you need to handle list appending in Python confidently.\n<\/p><\/blockquote>\n<h2>Basics of Appending to a Python List<\/h2>\n<p><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/ioflood.com\/blog\/python-append\/\">In Python, the <code>append()<\/code> method is<\/a> the most common way to add an item to a list. This method adds its argument as a single element to the end of the list. The length of the list increases by one. Here&#8217;s an example:<\/p>\n<pre><code class=\"language-python line-numbers\">fruits = ['apple', 'banana', 'cherry']\nfruits.append('date')\nprint(fruits)\n# Output: ['apple', 'banana', 'cherry', 'date']\n<\/code><\/pre>\n<p>In this example, we have a list named <code>fruits<\/code> containing three elements. We then use the <code>append()<\/code> method to add &#8216;date&#8217; to the end of the list. When we print <code>fruits<\/code>, we can see that it now includes &#8216;date&#8217;.<\/p>\n<h3>Understanding the <code>append()<\/code> Method<\/h3>\n<p>The <code>append()<\/code> method is straightforward to use. It takes one argument, the element you want to add to the list, and adds it to the end. This method doesn&#8217;t return a new list; instead, it alters the original list in-place. That&#8217;s why when we print <code>fruits<\/code> after appending &#8216;date&#8217;, we see the updated list.<\/p>\n<p>One thing to keep in mind is that <code>append()<\/code> adds its argument as a single element. This means if you append a list to another list, the entire list will be added as a single element, creating a nested list. Here&#8217;s an example:<\/p>\n<pre><code class=\"language-python line-numbers\">fruits = ['apple', 'banana', 'cherry']\nmore_fruits = ['elderberry', 'fig']\nfruits.append(more_fruits)\nprint(fruits)\n# Output: ['apple', 'banana', 'cherry', ['elderberry', 'fig']]\n<\/code><\/pre>\n<p>In this case, <code>more_fruits<\/code> is added as a single element, resulting in a list within a list. If you wanted to add each fruit in <code>more_fruits<\/code> as an individual element, you would need a different approach, which we&#8217;ll cover in the intermediate level section.<\/p>\n<blockquote><p>\n  For information on how to handle nested lists, you can check out <a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/ioflood.com\/blog\/python-flatten-list-how-to-flatted-nested-lists-in-python\/\">our reference guide<\/a>!\n<\/p><\/blockquote>\n<h2>Advanced Methods for List Appending<\/h2>\n<p>As you gain more experience with Python, you&#8217;ll find situations where you need to append multiple items to a list, append items from one list to another, or even append items in a loop. Let&#8217;s explore these scenarios in more detail.<\/p>\n<h3>Appending Multiple Items to a List<\/h3>\n<p>If you need to append multiple items to a list, you could call the <code>append()<\/code> method multiple times. But there&#8217;s a more efficient way: <a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/ioflood.com\/blog\/python-list-extend-method-usage-and-examples\/\">you can use the <code>extend()<\/code> method<\/a>, which takes an iterable (like a list or a tuple) and adds each of its elements to the list.<\/p>\n<pre><code class=\"language-python line-numbers\">fruits = ['apple', 'banana', 'cherry']\nmore_fruits = ['date', 'elderberry', 'fig']\nfruits.extend(more_fruits)\nprint(fruits)\n# Output: ['apple', 'banana', 'cherry', 'date', 'elderberry', 'fig']\n<\/code><\/pre>\n<p>In this example, <code>extend()<\/code> adds each fruit from <code>more_fruits<\/code> as an individual element to <code>fruits<\/code>, unlike <code>append()<\/code> which would have added <code>more_fruits<\/code> as a single element.<\/p>\n<h3>Appending Items in a Loop<\/h3>\n<p>You can also append items to a list within a loop. This is useful when you want to add items based on some condition or calculation.<\/p>\n<pre><code class=\"language-python line-numbers\">numbers = []\nfor i in range(5):\n    numbers.append(i)\nprint(numbers)\n# Output: [0, 1, 2, 3, 4]\n<\/code><\/pre>\n<p>In this example, we start with an empty list and <a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/ioflood.com\/blog\/for-loop-in-python-syntax-usage-and-examples\/\">use a <code>for<\/code> loop<\/a> to append numbers from 0 to 4. Each iteration of the loop appends the current value of <code>i<\/code> to the list.<\/p>\n<h3>Best Practices for Appending to Lists<\/h3>\n<p>When appending to lists in Python, it&#8217;s generally best to use the <code>append()<\/code> method for single elements and the <code>extend()<\/code> method for multiple elements or iterables.<\/p>\n<p>However, remember that <code>extend()<\/code> will add each element of the iterable individually, so if you want to keep the iterable intact as a single element, you should use <code>append()<\/code>. Using loops to append items can be powerful, especially when combined with conditionals, but be mindful of potential performance issues with very large lists.<\/p>\n<h2>Other Techniques to Add Items to Lists<\/h2>\n<p>While the <code>append()<\/code> and <code>extend()<\/code> methods are the most common ways to add items to a list, Python offers other techniques that can be more suitable in certain situations. Let&#8217;s explore some of these alternatives.<\/p>\n<h3>Using the <code>+<\/code> Operator<\/h3>\n<p>The <code>+<\/code> operator can be used to concatenate two lists, effectively appending the elements of the second list to the first. Here&#8217;s an example:<\/p>\n<pre><code class=\"language-python line-numbers\">fruits = ['apple', 'banana', 'cherry']\nmore_fruits = ['date', 'elderberry', 'fig']\nfruits = fruits + more_fruits\nprint(fruits)\n# Output: ['apple', 'banana', 'cherry', 'date', 'elderberry', 'fig']\n<\/code><\/pre>\n<p>In this example, the <code>+<\/code> operator combines <code>fruits<\/code> and <code>more_fruits<\/code> into a new list, which we then assign back to <code>fruits<\/code>. This method is simple and intuitive, but be aware that it creates a new list, which can be less efficient than <code>extend()<\/code> for large lists.<\/p>\n<h3>List Comprehension<\/h3>\n<p>List comprehension is a powerful Python feature that allows you to create and manipulate lists in a single line of code. You can use list comprehension to append items to a list based on some condition or calculation.<\/p>\n<pre><code class=\"language-python line-numbers\">numbers = [i for i in range(5)]\nprint(numbers)\n# Output: [0, 1, 2, 3, 4]\n<\/code><\/pre>\n<p>In this example, we <a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/ioflood.com\/blog\/python-list-comprehension\/\">use list comprehension to create a list<\/a> of numbers from 0 to 4. This is equivalent to creating an empty list and appending each number with a <code>for<\/code> loop, but much more concise.<\/p>\n<h3>Comparison of Methods<\/h3>\n<table>\n<thead>\n<tr>\n<th>Method<\/th>\n<th>Use Case<\/th>\n<th>Advantages<\/th>\n<th>Disadvantages<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>append()<\/code><\/td>\n<td>Adding a single item<\/td>\n<td>Simple, alters list in-place<\/td>\n<td>Adds iterables as single element<\/td>\n<\/tr>\n<tr>\n<td><code>extend()<\/code><\/td>\n<td>Adding multiple items or an iterable<\/td>\n<td>Adds each element of iterable individually, alters list in-place<\/td>\n<td>&#8211;<\/td>\n<\/tr>\n<tr>\n<td><code>+<\/code> operator<\/td>\n<td>Adding multiple items or an iterable<\/td>\n<td>Simple, intuitive<\/td>\n<td>Creates new list, less efficient for large lists<\/td>\n<\/tr>\n<tr>\n<td>List comprehension<\/td>\n<td>Adding items based on condition or calculation<\/td>\n<td>Concise, powerful<\/td>\n<td>Can be harder to read for complex expressions<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Each of these methods has its strengths and weaknesses, and the best one to use depends on your specific needs. Generally, <code>append()<\/code> and <code>extend()<\/code> are the go-to methods for most scenarios, but the <code>+<\/code> operator and list comprehension can be useful tools in your Python toolkit.<\/p>\n<h2>Handling Issues with List Appending<\/h2>\n<p>While appending to lists in Python is generally straightforward, you may encounter some issues. Here, we&#8217;ll discuss common problems, their solutions, and provide you with some useful tips.<\/p>\n<h3>Handling Type Errors<\/h3>\n<p>When appending to a list, you might run into TypeErrors if you try to append an incompatible type. Python lists can hold any type, but certain operations require specific types.<\/p>\n<pre><code class=\"language-python line-numbers\">numbers = [1, 2, 3]\nnumbers.append('four')\nprint(numbers)\n# Output: [1, 2, 3, 'four']\n<\/code><\/pre>\n<p>In this example, we appended a string to a list of integers, which is perfectly valid in Python. However, if you later try to perform an operation that requires integers (like sorting), you&#8217;ll run into a TypeError.<\/p>\n<p>To avoid this, ensure that the types of the items you&#8217;re appending are compatible with the operations you plan to perform on the list.<\/p>\n<h3>Avoiding Memory Issues<\/h3>\n<p>Appending a large number of items to a list can consume a lot of memory, especially if the items themselves are large. If you&#8217;re dealing with large amounts of data, consider using a more memory-efficient data structure like a generator, or processing the items in chunks instead of appending them all to a list at once.<\/p>\n<pre><code class=\"language-python line-numbers\">numbers = (i for i in range(1000000))  # This is a generator, not a list\nfor number in numbers:\n    # Process each number here, no need to store them all in a list\n    pass\n<\/code><\/pre>\n<p>In this example, we use a generator expression to create a sequence of a million numbers. The generator generates each number on the fly as we loop through them, so we don&#8217;t need to store them all in memory at once.<\/p>\n<p>If you&#8217;re not sure if the list is particularly large or not, you <a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/ioflood.com\/blog\/python-length-of-list\/\">can always inspect the length of a list in python using the len() function<\/a>, among other methods.<\/p>\n<p>Remember, the <code>append()<\/code> method is a tool in your Python toolkit. Like any tool, it&#8217;s powerful when used correctly, but can cause issues if misused. Always consider the characteristics and requirements of your data when choosing how to manipulate it.<\/p>\n<h2>Understanding Mutability of Python List<\/h2>\n<p>To fully grasp the process of appending to lists in Python, it&#8217;s essential to understand what Python lists are and how they work.<\/p>\n<h3>Python Lists: A Brief Overview<\/h3>\n<p>In Python, a list is a built-in data type that can hold a collection of items. These items can be of any type, and a single list can even contain items of different types. Lists are ordered, which means the items have a defined order that will not change unless you do so explicitly.<\/p>\n<pre><code class=\"language-python line-numbers\">mixed_list = ['apple', 1, 3.14, True]\nprint(mixed_list)\n# Output: ['apple', 1, 3.14, True]\n<\/code><\/pre>\n<p>In this example, <code>mixed_list<\/code> contains a string, an integer, a float, and a boolean. The order of these items will remain the same unless we modify the list.<\/p>\n<h3>Mutable vs Immutable Types<\/h3>\n<p>Python types can be divided into <a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/ioflood.com\/blog\/mutable-vs-immutable-in-python-object-data-types-explained\/\">two categories: mutable and immutable<\/a>. Mutable types can be changed after they are created, while immutable types cannot.<\/p>\n<p>Lists in Python are mutable. This means you can change a list after it has been created by adding, removing, or changing its items. This is why we can append items to a list using methods like <code>append()<\/code> or <code>extend()<\/code>, or by using the <code>+<\/code> operator.<\/p>\n<pre><code class=\"language-python line-numbers\">fruits = ['apple', 'banana']\nfruits.append('cherry')\nprint(fruits)\n# Output: ['apple', 'banana', 'cherry']\n<\/code><\/pre>\n<p>In this example, we create a list <code>fruits<\/code> and then append &#8216;cherry&#8217; to it. Because lists are mutable, we can modify <code>fruits<\/code> even after it has been created.<\/p>\n<p>Understanding the mutability of Python lists is crucial for working with them effectively. It allows us to modify lists in-place without creating new ones, which can be a significant advantage in terms of performance and memory usage, especially when dealing with large lists.<\/p>\n<h2>The Uses of Python List Manipulation<\/h2>\n<p>Appending to lists is a fundamental operation in Python, but its relevance goes far beyond simply adding items to a list. It plays a crucial role in data manipulation, algorithm implementation, and more.<\/p>\n<h3>Data Manipulation<\/h3>\n<p>In data analysis and machine learning, you often need to manipulate large datasets. Appending to lists is a common operation in this process, whether you&#8217;re adding new data, combining datasets, or generating results.<\/p>\n<pre><code class=\"language-python line-numbers\">data = []\nfor i in range(100):\n    # Simulate data collection\n    data_point = i * i\n    data.append(data_point)\n# Output: [0, 1, 4, 9, 16, 25, ..., 9801]\n<\/code><\/pre>\n<p>In this example, we simulate the process of collecting data and appending each data point to a list. This is a simplified scenario, but in real-world data analysis, you might be appending more complex data like tuples, dictionaries, or custom objects.<\/p>\n<h3>Algorithms and Data Structures<\/h3>\n<p>Many algorithms and data structures use lists and rely on the ability to append items. For instance, in a breadth-first search algorithm, you might use a list as a queue and continuously append new nodes to explore.<\/p>\n<h3>Going Further: List Slicing, Sorting, and More<\/h3>\n<p>Appending to lists is just the tip of the iceberg when it comes to list manipulation in Python. There are many other powerful features to explore, such as list slicing (extracting a subset of a list), <a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/ioflood.com\/blog\/python-sort-list\/\">list sorting<\/a>, and more. These operations, combined with appending to lists, give you a powerful toolkit for manipulating data in Python.<\/p>\n<pre><code class=\"language-python line-numbers\">numbers = [i for i in range(10)]\nprint(numbers[::2])  # List slicing\nnumbers.sort(reverse=True)  # List sorting\nprint(numbers)\n# Output: [0, 2, 4, 6, 8]\n# Output: [9, 8, 7, 6, 5, 4, 3, 2, 1, 0]\n<\/code><\/pre>\n<p>In this example, we first use list slicing to print every other number from a list. Then we sort the list in reverse order and print it again.<\/p>\n<p>To dive deeper into these topics, consider checking out Python&#8217;s official documentation, online courses, or Python-focused blogs. The more you learn and practice, the more effective you&#8217;ll become at using lists and other data structures in Python.<\/p>\n<h3>Further Resources for Python<\/h3>\n<p>If you&#8217;re interested in learning more about adding elements to a list in Python and getting the index of an item in a list, here are a few resources that you might find helpful:<\/p>\n<ul>\n<li><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/ioflood.com\/blog\/python-lists\/\">Practical Applications of Python Lists in Coding<\/a>: Explore real-world practical applications and use cases of Python lists to enhance your coding skills.<\/p>\n<\/li>\n<li>\n<p><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/ioflood.com\/blog\/python-add-to-list\/\">Tutorial on Adding Elements to a List<\/a>: This IOFlood tutorial demonstrates different methods to add elements to a list in Python.<\/p>\n<\/li>\n<li>\n<p><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/ioflood.com\/blog\/python-get-index-of-item-in-list\/\">Guide on Getting the Index of an Item in a List<\/a>: This guide by IOFlood explores techniques to retrieve the index of an item in a list in Python.<\/p>\n<\/li>\n<li>\n<p><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/www.programiz.com\/python-programming\/methods\/list\/append\" target=\"_blank\" rel=\"noopener\">Python list append() Method<\/a>: The official documentation on the append() method for Python lists from Programiz.<\/p>\n<\/li>\n<li>\n<p><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/www.w3schools.com\/python\/ref_list_append.asp\" target=\"_blank\" rel=\"noopener\">Python list append() Method: w3schools<\/a>: A concise description of the append() method for Python lists on w3schools.<\/p>\n<\/li>\n<li>\n<p><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/realpython.com\/python-append\/\" target=\"_blank\" rel=\"noopener\">The Real Python Tutorial on Append<\/a>: A tutorial on Real Python focusing on the append() method for Python lists.<\/p>\n<\/li>\n<\/ul>\n<p>These resources will provide you with detailed explanations and examples to understand and implement the operations of adding elements to a list and getting the index of an item in Python.<\/p>\n<h2>Wrapping Up: Python List Appending<\/h2>\n<p>Appending to lists is a fundamental operation in Python, and understanding how to do it effectively is crucial. We&#8217;ve explored the basic <code>append()<\/code> method, which adds a single item to the end of a list, and the <code>extend()<\/code> method, which adds each item of an iterable to a list. We&#8217;ve also seen how to append multiple items using a loop.<\/p>\n<pre><code class=\"language-python line-numbers\">numbers = []\nfor i in range(5):\n    numbers.append(i)\nprint(numbers)\n# Output: [0, 1, 2, 3, 4]\n<\/code><\/pre>\n<p>In this example, we used a for loop to append numbers 0 through 4 to an initially empty list.<\/p>\n<p>We&#8217;ve delved into alternative approaches for appending to lists, such as the <code>+<\/code> operator and list comprehension. These methods can be more suitable in certain scenarios, depending on the specifics of your data and what you want to achieve.<\/p>\n<pre><code class=\"language-python line-numbers\">numbers = [i for i in range(5)]\nprint(numbers)\n# Output: [0, 1, 2, 3, 4]\n<\/code><\/pre>\n<p>In this example, we used list comprehension to create a list of numbers from 0 to 4, which is a more concise equivalent of the previous loop example.<\/p>\n<p>Finally, we&#8217;ve discussed common issues you might encounter when appending to lists, such as type errors and memory issues, and provided solutions and workarounds for these problems. Always remember to consider the characteristics and requirements of your data when choosing how to manipulate it.<\/p>\n<p>Here&#8217;s a quick recap of the methods we&#8217;ve discussed:<\/p>\n<table>\n<thead>\n<tr>\n<th>Method<\/th>\n<th>Use Case<\/th>\n<th>Advantages<\/th>\n<th>Disadvantages<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>append()<\/code><\/td>\n<td>Adding a single item<\/td>\n<td>Simple, alters list in-place<\/td>\n<td>Adds iterables as single element<\/td>\n<\/tr>\n<tr>\n<td><code>extend()<\/code><\/td>\n<td>Adding multiple items or an iterable<\/td>\n<td>Adds each element of iterable individually, alters list in-place<\/td>\n<td>&#8211;<\/td>\n<\/tr>\n<tr>\n<td><code>+<\/code> operator<\/td>\n<td>Adding multiple items or an iterable<\/td>\n<td>Simple, intuitive<\/td>\n<td>Creates new list, less efficient for large lists<\/td>\n<\/tr>\n<tr>\n<td>List comprehension<\/td>\n<td>Adding items based on condition or calculation<\/td>\n<td>Concise, powerful<\/td>\n<td>Can be harder to read for complex expressions<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Remember, the best method to use depends on your specific needs. Keep practicing and exploring, and you&#8217;ll become more proficient at manipulating lists in Python.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Appending elements to a list in Python is a fundamental operation for data manipulation at IOFLOOD. This task allows for dynamic growth of data sets, making it essential for automating our processes. This article shares our techniques and best practices to empower our dedicated server customers in scripting data management processes on their bare metal [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":21498,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[121,123],"tags":[],"class_list":["post-4023","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-programming-coding","category-python","cat-121-id","cat-123-id","has_thumb"],"_links":{"self":[{"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/posts\/4023","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/comments?post=4023"}],"version-history":[{"count":32,"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/posts\/4023\/revisions"}],"predecessor-version":[{"id":21499,"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/posts\/4023\/revisions\/21499"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/media\/21498"}],"wp:attachment":[{"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/media?parent=4023"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/categories?post=4023"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/tags?post=4023"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}