{"id":17445,"date":"2020-07-30T13:03:37","date_gmt":"2020-07-30T07:33:37","guid":{"rendered":"https:\/\/www.mygreatlearning.com\/blog\/append-in-python-how-is-append-function-used-in-python\/"},"modified":"2025-06-09T22:30:55","modified_gmt":"2025-06-09T17:00:55","slug":"append-in-python-how-is-append-function-used-in-python","status":"publish","type":"post","link":"https:\/\/www.mygreatlearning.com\/blog\/append-in-python-how-is-append-function-used-in-python\/","title":{"rendered":"How to Append Lists in Python"},"content":{"rendered":"\n<p>You can use the <code>append()<\/code> method to add any data type to a list, including numbers, strings, Booleans, other lists, tuples, or dictionaries.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"what-is-the-python-append-method\">What is the Python <code>append()<\/code> Method?<\/h2>\n\n\n\n<p>The Python <code>append()<\/code> method adds a single item to the end of a list. It is a built-in list method. You call <code>append()<\/code> on a list object. The method modifies the list in place, adding the new item to its last position.<\/p>\n\n\n\n<p>For example, if you have a list <code>[1, 2, 3]<\/code> and append <code>4<\/code>, the list becomes <code>[1, 2, 3, 4]<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"3-steps-to-use-the-python-append-method\">3 Steps to Use the Python <code>append()<\/code> Method<\/h2>\n\n\n\n<p>Using <code>append()<\/code> is a straightforward process. Follow these steps to add elements to your Python lists.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-1-create-or-select-a-list\">Step 1: Create or Select a List<\/h3>\n\n\n\n<p>Before you use <code>append()<\/code>, you need a list. You can start with an empty list or use an existing one.<\/p>\n\n\n\n<p>Here is how you create an empty list:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nmy_list = &#x5B;]\nprint(my_list)\n# Output: &#x5B;]\n<\/pre><\/div>\n\n\n<p>Here is an example with an existing list:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nfruits = &#x5B;&quot;apple&quot;, &quot;banana&quot;, &quot;cherry&quot;]\nprint(fruits)\n# Output: &#x5B;&#039;apple&#039;, &#039;banana&#039;, &#039;cherry&#039;]\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"step-2-call-append-on-the-list\">Step 2: Call <code>append()<\/code> on the List<\/h3>\n\n\n\n<p>Once you have a list, call the <code>append()<\/code> method on it. Pass the element you want to add inside the parentheses.<\/p>\n\n\n\n<p>The syntax looks like this: <code>list_name.append(item)<\/code>.<\/p>\n\n\n\n<p>For instance, to add \"orange\" to the <code>fruits<\/code> list:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nfruits = &#x5B;&quot;apple&quot;, &quot;banana&quot;, &quot;cherry&quot;]\nfruits.append(&quot;orange&quot;)\nprint(fruits)\n# Output: &#x5B;&#039;apple&#039;, &#039;banana&#039;, &#039;cherry&#039;, &#039;orange&#039;]\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"step-3-verify-the-change\">Step 3: Verify the Change<\/h3>\n\n\n\n<p>The <code>append()<\/code> method modifies the original list. You can print the list to confirm the element was added successfully.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nnumbers = &#x5B;1, 2, 3]\nnumbers.append(4)\nprint(numbers)\n# Output: &#x5B;1, 2, 3, 4]\n<\/pre><\/div>\n\n\n    <div class=\"courses-cta-container\">\n        <div class=\"courses-cta-card\">\n            <div class=\"courses-cta-header\">\n                <div class=\"courses-learn-icon\"><\/div>\n                <span class=\"courses-learn-text\">Academy Pro<\/span>\n            <\/div>\n            <p class=\"courses-cta-title\">\n                <a href=\"https:\/\/www.mygreatlearning.com\/academy\/premium\/master-python-programming\" class=\"courses-cta-title-link\">Python Programming Course<\/a>\n            <\/p>\n            <p class=\"courses-cta-description\">In this course, you will learn the fundamentals of Python: from basic syntax to mastering data structures, loops, and functions. You will also explore OOP concepts and objects to build robust programs.<\/p>\n            <div class=\"courses-cta-stats\">\n                <div class=\"courses-stat-item\">\n                    <div class=\"courses-stat-icon courses-user-icon\"><\/div>\n                    <span>11.5 Hrs<\/span>\n                <\/div>\n                <div class=\"courses-stat-item\">\n                    <div class=\"courses-stat-icon courses-star-icon\"><\/div>\n                    <span>51 Coding Exercises<\/span>\n                <\/div>\n            <\/div>\n            <a href=\"https:\/\/www.mygreatlearning.com\/academy\/premium\/master-python-programming\" class=\"courses-cta-button\">\n                Start Free Trial\n                <div class=\"courses-arrow-icon\"><\/div>\n            <\/a>\n        <\/div>\n    <\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"how-append-handles-different-data-types\">How <code>append()<\/code> Handles Different Data Types<\/h2>\n\n\n\n<p>You can append various data types to a Python list. <code>append()<\/code> treats whatever you pass to it as a single item.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"appending-numbers-and-strings\">Appending Numbers and Strings<\/h3>\n\n\n\n<p>You can add numerical values or text to a list.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\ndata = &#x5B;10, 20]\ndata.append(30)\nprint(data)\n# Output: &#x5B;10, 20, 30]\n\nnames = &#x5B;&quot;Alice&quot;, &quot;Bob&quot;]\nnames.append(&quot;Charlie&quot;)\nprint(names)\n# Output: &#x5B;&#039;Alice&#039;, &#039;Bob&#039;, &#039;Charlie&#039;]\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"appending-booleans\">Appending Booleans<\/h3>\n\n\n\n<p>You can add <code>True<\/code> or <code>False<\/code> values.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nstatus = &#x5B;True, False]\nstatus.append(True)\nprint(status)\n# Output: &#x5B;True, False, True]\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"appending-other-lists-nested-lists\">Appending Other Lists (Nested Lists)<\/h3>\n\n\n\n<p>When you append another list, <code>append()<\/code> adds the entire list as a single element, creating a nested list.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nlist1 = &#x5B;1, 2, 3]\nlist2 = &#x5B;4, 5]\nlist1.append(list2)\nprint(list1)\n# Output: &#x5B;1, 2, 3, &#x5B;4, 5]]\n<\/pre><\/div>\n\n\n<p>To access elements within the nested list, use multiple indices:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nprint(list1&#x5B;3]&#x5B;0])\n# Output: 4\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"appending-tuples\">Appending Tuples<\/h3>\n\n\n\n<p><code>append()<\/code> also adds a tuple as a single element to the list.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nmy_list = &#x5B;&quot;a&quot;, &quot;b&quot;]\nmy_tuple = (1, 2)\nmy_list.append(my_tuple)\nprint(my_list)\n# Output: &#x5B;&#039;a&#039;, &#039;b&#039;, (1, 2)]\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"appending-dictionaries\">Appending Dictionaries<\/h3>\n\n\n\n<p>You can add dictionaries to a list using <code>append()<\/code>.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\ninventory = &#x5B;&quot;item1&quot;, &quot;item2&quot;]\nnew_item_details = {&quot;name&quot;: &quot;laptop&quot;, &quot;quantity&quot;: 5}\ninventory.append(new_item_details)\nprint(inventory)\n# Output: &#x5B;&#039;item1&#039;, &#039;item2&#039;, {&#039;name&#039;: &#039;laptop&#039;, &#039;quantity&#039;: 5}]\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"building-lists-with-loops\">Building Lists with Loops<\/h2>\n\n\n\n<p>The <code>append()<\/code> method is useful for building lists incrementally, especially within loops. You can start with an empty list and add elements as you process data or gather input.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"example-populating-a-list-from-user-input\">Example: Populating a List from User Input<\/h3>\n\n\n\n<p>You can create a list from values entered by a user.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nuser_inputs = &#x5B;]\nwhile True:\n    user_input = input(&quot;Enter a word (or &#039;quit&#039; to stop): &quot;)\n    if user_input.lower() == &#039;quit&#039;:\n        break\n    user_inputs.append(user_input)\n\nprint(&quot;Your collected words:&quot;, user_inputs)\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"example-filtering-data-into-a-new-list\">Example: Filtering Data into a New List<\/h3>\n\n\n\n<p>You can use a loop to process items and append only those that meet certain conditions to a new list.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nall_numbers = &#x5B;1, 2, 3, 4, 5, 6, 7, 8, 9, 10]\neven_numbers = &#x5B;]\nfor number in all_numbers:\n    if number % 2 == 0:\n        even_numbers.append(number)\n\nprint(&quot;Even numbers:&quot;, even_numbers)\n# Output: Even numbers: &#x5B;2, 4, 6, 8, 10]\n<\/pre><\/div>\n\n\n<p>Loops can sound complicated, but they are simply a way to repeat a task like dragging a formula down a column in a spreadsheet. Using <code>append()<\/code> inside a loop allows Python to do the 'heavy lifting' for you. Because this is a core skill for any beginner, the <strong><a href=\"https:\/\/www.mygreatlearning.com\/academy\/learn-for-free\/courses\/python-fundamentals-for-beginners\" target=\"_blank\" rel=\"noreferrer noopener\">Free Python Course<\/a><\/strong> breaks down exactly how loops work with easy-to-follow examples, making it perfect for those just starting their coding journey.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"important-considerations\">Important Considerations<\/h2>\n\n\n\n<p>When using <code>append()<\/code>, remember these points:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>In-Place Modification:<\/strong> <code>append()<\/code> changes the original list directly. It does not create a new list.<\/li>\n\n\n\n<li><strong>Returns <code>None<\/code>:<\/strong> The <code>append()<\/code> method does not return the modified list. It returns <code>None<\/code>. If you try to assign the result of <code>append()<\/code> to a variable, that variable will be <code>None<\/code>.<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nmy_list = &#x5B;1, 2]\nresult = my_list.append(3)\nprint(result)  # Output: None\nprint(my_list) # Output: &#x5B;1, 2, 3]\n<\/pre><\/div>\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Single Element:<\/strong> <code>append()<\/code> always adds a single element to the list. If you want to add multiple items from an iterable (like another list or a tuple) as individual elements, use the <code>extend()<\/code> method instead.<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nlist_a = &#x5B;1, 2]\nlist_b = &#x5B;3, 4]\n\nlist_a.append(list_b)\nprint(list_a)\n# Output: &#x5B;1, 2, &#x5B;3, 4]] (list_b is added as a single element)\n\nlist_a = &#x5B;1, 2] # Reset list_a\nlist_a.extend(list_b)\nprint(list_a)\n# Output: &#x5B;1, 2, 3, 4] (elements of list_b are added individually)\n<\/pre><\/div>","protected":false},"excerpt":{"rendered":"<p>The Python append() method adds a single element to the end of an existing list. This method modifies the original list directly and does not return a new list. You can use it to build lists dynamically.<\/p>\n","protected":false},"author":41,"featured_media":17885,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[25860],"tags":[36796],"content_type":[],"class_list":["post-17445","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software","tag-python"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.3 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>List append() Method in Python with Examples<\/title>\n<meta name=\"description\" content=\"The Append () Method in Python is used to add an item to the end of a list. It is a Python built-in function used to manipulate lists.\" \/>\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.mygreatlearning.com\/blog\/append-in-python-how-is-append-function-used-in-python\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Append Lists in Python\" \/>\n<meta property=\"og:description\" content=\"The Append () Method in Python is used to add an item to the end of a list. It is a Python built-in function used to manipulate lists.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.mygreatlearning.com\/blog\/append-in-python-how-is-append-function-used-in-python\/\" \/>\n<meta property=\"og:site_name\" content=\"Great Learning Blog: Free Resources what Matters to shape your Career!\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/GreatLearningOfficial\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-07-30T07:33:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-06-09T17:00:55+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/07\/iStock-1189210101-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"724\" \/>\n\t<meta property=\"og:image:height\" content=\"483\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Great Learning Editorial Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/Great_Learning\" \/>\n<meta name=\"twitter:site\" content=\"@Great_Learning\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Great Learning Editorial Team\" \/>\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.mygreatlearning.com\\\/blog\\\/append-in-python-how-is-append-function-used-in-python\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/append-in-python-how-is-append-function-used-in-python\\\/\"},\"author\":{\"name\":\"Great Learning Editorial Team\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#\\\/schema\\\/person\\\/6f993d1be4c584a335951e836f2656ad\"},\"headline\":\"How to Append Lists in Python\",\"datePublished\":\"2020-07-30T07:33:37+00:00\",\"dateModified\":\"2025-06-09T17:00:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/append-in-python-how-is-append-function-used-in-python\\\/\"},\"wordCount\":538,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/append-in-python-how-is-append-function-used-in-python\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/07\\\/iStock-1189210101-1.jpg\",\"keywords\":[\"python\"],\"articleSection\":[\"IT\\\/Software Development\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/append-in-python-how-is-append-function-used-in-python\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/append-in-python-how-is-append-function-used-in-python\\\/\",\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/append-in-python-how-is-append-function-used-in-python\\\/\",\"name\":\"List append() Method in Python with Examples\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/append-in-python-how-is-append-function-used-in-python\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/append-in-python-how-is-append-function-used-in-python\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/07\\\/iStock-1189210101-1.jpg\",\"datePublished\":\"2020-07-30T07:33:37+00:00\",\"dateModified\":\"2025-06-09T17:00:55+00:00\",\"description\":\"The Append () Method in Python is used to add an item to the end of a list. It is a Python built-in function used to manipulate lists.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/append-in-python-how-is-append-function-used-in-python\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/append-in-python-how-is-append-function-used-in-python\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/append-in-python-how-is-append-function-used-in-python\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/07\\\/iStock-1189210101-1.jpg\",\"contentUrl\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/07\\\/iStock-1189210101-1.jpg\",\"width\":724,\"height\":483,\"caption\":\"Python programming language concept. Woman developer with her hand holding modern sign with word python, on wire background.\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/append-in-python-how-is-append-function-used-in-python\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog\",\"item\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"IT\\\/Software Development\",\"item\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/software\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to Append Lists in Python\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/\",\"name\":\"Great Learning Blog\",\"description\":\"Learn, Upskill &amp; Career Development Guide and Resources\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#organization\"},\"alternateName\":\"Great Learning\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#organization\",\"name\":\"Great Learning\",\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/GL-Logo.jpg\",\"contentUrl\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/GL-Logo.jpg\",\"width\":900,\"height\":900,\"caption\":\"Great Learning\"},\"image\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/GreatLearningOfficial\\\/\",\"https:\\\/\\\/x.com\\\/Great_Learning\",\"https:\\\/\\\/www.instagram.com\\\/greatlearningofficial\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/school\\\/great-learning\\\/\",\"https:\\\/\\\/in.pinterest.com\\\/greatlearning12\\\/\",\"https:\\\/\\\/www.youtube.com\\\/user\\\/beaconelearning\\\/\"],\"description\":\"Great Learning is a leading global ed-tech company for professional training and higher education. It offers comprehensive, industry-relevant, hands-on learning programs across various business, technology, and interdisciplinary domains driving the digital economy. These programs are developed and offered in collaboration with the world's foremost academic institutions.\",\"email\":\"info@mygreatlearning.com\",\"legalName\":\"Great Learning Education Services Pvt. Ltd\",\"foundingDate\":\"2013-11-29\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"1001\",\"maxValue\":\"5000\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#\\\/schema\\\/person\\\/6f993d1be4c584a335951e836f2656ad\",\"name\":\"Great Learning Editorial Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/unnamed.webp\",\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/unnamed.webp\",\"contentUrl\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/unnamed.webp\",\"caption\":\"Great Learning Editorial Team\"},\"description\":\"The Great Learning Editorial Staff includes a dynamic team of subject matter experts, instructors, and education professionals who combine their deep industry knowledge with innovative teaching methods. Their mission is to provide learners with the skills and insights needed to excel in their careers, whether through upskilling, reskilling, or transitioning into new fields.\",\"sameAs\":[\"https:\\\/\\\/www.mygreatlearning.com\\\/\",\"https:\\\/\\\/in.linkedin.com\\\/school\\\/great-learning\\\/\",\"https:\\\/\\\/x.com\\\/https:\\\/\\\/twitter.com\\\/Great_Learning\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCObs0kLIrDjX2LLSybqNaEA\"],\"award\":[\"Best EdTech Company of the Year 2024\",\"Education Economictimes Outstanding Education\\\/Edtech Solution Provider of the Year 2024\",\"Leading E-learning Platform 2024\"],\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/author\\\/greatlearning\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"List append() Method in Python with Examples","description":"The Append () Method in Python is used to add an item to the end of a list. It is a Python built-in function used to manipulate lists.","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.mygreatlearning.com\/blog\/append-in-python-how-is-append-function-used-in-python\/","og_locale":"en_US","og_type":"article","og_title":"How to Append Lists in Python","og_description":"The Append () Method in Python is used to add an item to the end of a list. It is a Python built-in function used to manipulate lists.","og_url":"https:\/\/www.mygreatlearning.com\/blog\/append-in-python-how-is-append-function-used-in-python\/","og_site_name":"Great Learning Blog: Free Resources what Matters to shape your Career!","article_publisher":"https:\/\/www.facebook.com\/GreatLearningOfficial\/","article_published_time":"2020-07-30T07:33:37+00:00","article_modified_time":"2025-06-09T17:00:55+00:00","og_image":[{"width":724,"height":483,"url":"http:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/07\/iStock-1189210101-1.jpg","type":"image\/jpeg"}],"author":"Great Learning Editorial Team","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/Great_Learning","twitter_site":"@Great_Learning","twitter_misc":{"Written by":"Great Learning Editorial Team","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.mygreatlearning.com\/blog\/append-in-python-how-is-append-function-used-in-python\/#article","isPartOf":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/append-in-python-how-is-append-function-used-in-python\/"},"author":{"name":"Great Learning Editorial Team","@id":"https:\/\/www.mygreatlearning.com\/blog\/#\/schema\/person\/6f993d1be4c584a335951e836f2656ad"},"headline":"How to Append Lists in Python","datePublished":"2020-07-30T07:33:37+00:00","dateModified":"2025-06-09T17:00:55+00:00","mainEntityOfPage":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/append-in-python-how-is-append-function-used-in-python\/"},"wordCount":538,"commentCount":0,"publisher":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/append-in-python-how-is-append-function-used-in-python\/#primaryimage"},"thumbnailUrl":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/07\/iStock-1189210101-1.jpg","keywords":["python"],"articleSection":["IT\/Software Development"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.mygreatlearning.com\/blog\/append-in-python-how-is-append-function-used-in-python\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.mygreatlearning.com\/blog\/append-in-python-how-is-append-function-used-in-python\/","url":"https:\/\/www.mygreatlearning.com\/blog\/append-in-python-how-is-append-function-used-in-python\/","name":"List append() Method in Python with Examples","isPartOf":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/append-in-python-how-is-append-function-used-in-python\/#primaryimage"},"image":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/append-in-python-how-is-append-function-used-in-python\/#primaryimage"},"thumbnailUrl":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/07\/iStock-1189210101-1.jpg","datePublished":"2020-07-30T07:33:37+00:00","dateModified":"2025-06-09T17:00:55+00:00","description":"The Append () Method in Python is used to add an item to the end of a list. It is a Python built-in function used to manipulate lists.","breadcrumb":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/append-in-python-how-is-append-function-used-in-python\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.mygreatlearning.com\/blog\/append-in-python-how-is-append-function-used-in-python\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.mygreatlearning.com\/blog\/append-in-python-how-is-append-function-used-in-python\/#primaryimage","url":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/07\/iStock-1189210101-1.jpg","contentUrl":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/07\/iStock-1189210101-1.jpg","width":724,"height":483,"caption":"Python programming language concept. Woman developer with her hand holding modern sign with word python, on wire background."},{"@type":"BreadcrumbList","@id":"https:\/\/www.mygreatlearning.com\/blog\/append-in-python-how-is-append-function-used-in-python\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/www.mygreatlearning.com\/blog\/"},{"@type":"ListItem","position":2,"name":"IT\/Software Development","item":"https:\/\/www.mygreatlearning.com\/blog\/software\/"},{"@type":"ListItem","position":3,"name":"How to Append Lists in Python"}]},{"@type":"WebSite","@id":"https:\/\/www.mygreatlearning.com\/blog\/#website","url":"https:\/\/www.mygreatlearning.com\/blog\/","name":"Great Learning Blog","description":"Learn, Upskill &amp; Career Development Guide and Resources","publisher":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/#organization"},"alternateName":"Great Learning","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.mygreatlearning.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.mygreatlearning.com\/blog\/#organization","name":"Great Learning","url":"https:\/\/www.mygreatlearning.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.mygreatlearning.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/06\/GL-Logo.jpg","contentUrl":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/06\/GL-Logo.jpg","width":900,"height":900,"caption":"Great Learning"},"image":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/GreatLearningOfficial\/","https:\/\/x.com\/Great_Learning","https:\/\/www.instagram.com\/greatlearningofficial\/","https:\/\/www.linkedin.com\/school\/great-learning\/","https:\/\/in.pinterest.com\/greatlearning12\/","https:\/\/www.youtube.com\/user\/beaconelearning\/"],"description":"Great Learning is a leading global ed-tech company for professional training and higher education. It offers comprehensive, industry-relevant, hands-on learning programs across various business, technology, and interdisciplinary domains driving the digital economy. These programs are developed and offered in collaboration with the world's foremost academic institutions.","email":"info@mygreatlearning.com","legalName":"Great Learning Education Services Pvt. Ltd","foundingDate":"2013-11-29","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"1001","maxValue":"5000"}},{"@type":"Person","@id":"https:\/\/www.mygreatlearning.com\/blog\/#\/schema\/person\/6f993d1be4c584a335951e836f2656ad","name":"Great Learning Editorial Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/02\/unnamed.webp","url":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/02\/unnamed.webp","contentUrl":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/02\/unnamed.webp","caption":"Great Learning Editorial Team"},"description":"The Great Learning Editorial Staff includes a dynamic team of subject matter experts, instructors, and education professionals who combine their deep industry knowledge with innovative teaching methods. Their mission is to provide learners with the skills and insights needed to excel in their careers, whether through upskilling, reskilling, or transitioning into new fields.","sameAs":["https:\/\/www.mygreatlearning.com\/","https:\/\/in.linkedin.com\/school\/great-learning\/","https:\/\/x.com\/https:\/\/twitter.com\/Great_Learning","https:\/\/www.youtube.com\/channel\/UCObs0kLIrDjX2LLSybqNaEA"],"award":["Best EdTech Company of the Year 2024","Education Economictimes Outstanding Education\/Edtech Solution Provider of the Year 2024","Leading E-learning Platform 2024"],"url":"https:\/\/www.mygreatlearning.com\/blog\/author\/greatlearning\/"}]}},"uagb_featured_image_src":{"full":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/07\/iStock-1189210101-1.jpg",724,483,false],"thumbnail":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/07\/iStock-1189210101-1-150x150.jpg",150,150,true],"medium":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/07\/iStock-1189210101-1-300x200.jpg",300,200,true],"medium_large":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/07\/iStock-1189210101-1.jpg",724,483,false],"large":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/07\/iStock-1189210101-1.jpg",724,483,false],"1536x1536":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/07\/iStock-1189210101-1.jpg",724,483,false],"2048x2048":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/07\/iStock-1189210101-1.jpg",724,483,false],"web-stories-poster-portrait":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/07\/iStock-1189210101-1.jpg",640,427,false],"web-stories-publisher-logo":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/07\/iStock-1189210101-1.jpg",96,64,false],"web-stories-thumbnail":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2020\/07\/iStock-1189210101-1.jpg",150,100,false]},"uagb_author_info":{"display_name":"Great Learning Editorial Team","author_link":"https:\/\/www.mygreatlearning.com\/blog\/author\/greatlearning\/"},"uagb_comment_info":1,"uagb_excerpt":"The Python append() method adds a single element to the end of an existing list. This method modifies the original list directly and does not return a new list. You can use it to build lists dynamically.","_links":{"self":[{"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/posts\/17445","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/users\/41"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/comments?post=17445"}],"version-history":[{"count":13,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/posts\/17445\/revisions"}],"predecessor-version":[{"id":116939,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/posts\/17445\/revisions\/116939"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/media\/17885"}],"wp:attachment":[{"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/media?parent=17445"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/categories?post=17445"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/tags?post=17445"},{"taxonomy":"content_type","embeddable":true,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/content_type?post=17445"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}