{"id":12056,"date":"2020-10-20T23:30:40","date_gmt":"2020-10-21T06:30:40","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=12056"},"modified":"2023-12-01T04:03:15","modified_gmt":"2023-12-01T12:03:15","slug":"python-append-to-list","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/python-append-to-list\/","title":{"rendered":"Python Append to List: A Step-By-Step Guide"},"content":{"rendered":"\n<p><em>The append() Python method adds an item to the end of an existing list. The append() method does not create a new list. Instead, original list is changed. append() also lets you add the contents of one list to another list.<\/em><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>Arrays are a built-in data structure in Python that can be used to organize and store data in a list. Instead of storing similar data in multiple variables, you can store them in a list. Lists can hold any data type, like strings and numbers.<\/p>\n\n\n\n<p>The append() method lets you add items to an existing list. This means that you do not have to create a new list every time you want to update the contents of your list. In this guide, we&#8217;re going to discuss how to use the append() method.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Python List Refresher<\/h2>\n\n\n\n<p><a href=\"https:\/\/careerkarma.com\/blog\/python-array\/\">Python lists<\/a> can store zero or more items of a specific data type, such as strings, JSON objects, or numbers. For example, you can use a list to store a list of names or addresses. Lists are mutable. This means you can change their contents.<\/p>\n\n\n\n<p>To create a new list in Python, you need to separate a list of values with commas and enclose it in square brackets <em>[]<\/em>. Let\u2019s create a list in Python, using this code:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>toy_animals = [&quot;Shark&quot;, &quot;Dragon&quot;, &quot;Bear&quot;, &quot;Cat&quot;, &quot;Giraffe&quot;]<\/pre><\/div>\n\n\n\n<p>When we <a href=\"https:\/\/careerkarma.com\/blog\/python-print-without-new-line\/\">print out our list to the console<\/a>, we can see the list that we\u2019ve defined:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>print(toy_animals)<\/pre><\/div>\n\n\n\n<p>Output:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>[&quot;Shark&quot;, &quot;Dragon&quot;, &quot;Bear&quot;, &quot;Cat&quot;, &quot;Giraffe&quot;]<\/pre><\/div>\n\n\n\n<p>Each item on our list has an index number, which can be used to reference an individual list item. These index numbers start with the value and increase for each item in a list. For our above <em>toy_animals<\/em> list, index numbers are assigned like this:<\/p>\n\n\n\n<table class=\"wp-block-table course-info-table\"><tbody><tr><td>\u201cShark\u201d<\/td><td>\u201cDragon\u201d<\/td><td>\u201cBear\u201d<\/td><td>\u201cCat\u201d<\/td><td>\u201cGiraffe\u201d<\/td><\/tr><tr><td>0<\/td><td>1<\/td><td>2<\/td><td>3<\/td><td>4<\/td><\/tr><\/tbody><\/table>\n\n\n\n<p>The first item on our list <em>Shark<\/em> has the value 0. The last item <em>Giraffe<\/em> has the value <em>4<\/em>. We can use these index numbers to access and manipulate our list. So, if we want to access the element with the index number <em>1<\/em>, we can use the following code:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>print(toy_animals[1])<\/pre><\/div>\n\n\n\n<p>Output:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>&quot;Dragon&quot;<\/pre><\/div>\n\n\n\n<p>Lists are mutable, which means that you can add and remove items to an existing list. Now that we\u2019ve explored the basics of lists and list indexing in Python, we can start using the <code>append()<\/code> and <code>insert()<\/code> methods.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Python Append to List Using Append()<\/h2>\n\n\n\n<p>The Python append() list method adds an element to the end of a list.<\/p>\n\n\n\n<p>The append() method accepts the item that you want to add to a list as an argument. The list item can contain strings, dictionaries, or any other data type.<\/p>\n\n\n\n<p>Let\u2019s start add elements to the list of toy animals we started building earlier. Our list contains five items, with index values ranging between <em>0<\/em> and <em>4<\/em>.<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>toy_animals = [&quot;Shark&quot;, &quot;Dragon&quot;, &quot;Bear&quot;, &quot;Cat&quot;, &quot;Giraffe&quot;]<\/pre><\/div>\n\n\n\n<p>Suppose that we have a new toy animal, the <em>Meerkat<\/em>, which we want to add to our list. We could use the append() method to add the animal to our list like so:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>toy_animals.append(&quot;Meerkat&quot;)\nprint(toy_animals)<\/pre><\/div>\n\n\n\n<p>We have added a single element to our list. Now our list contains six objects. <em>Meerkat<\/em> appears at the end. It\u2019s worth noting that the append() function has altered our original list. A new list was not created.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Append Python List to Another List<\/h2>\n\n\n\n<p>You can append the contents of an existing list to another list using the Python list append() method.<\/p>\n\n\n\n<p>We want to add three new toy animals to our list: <em>Rabbit<\/em>, <em>Dolphin<\/em>, and <em>Kangaroo<\/em>. Instead of adding each animal individually, we can add them into a new list. Then, we can append the new list to our old one.<\/p>\n\n\n\n<p>Consider the following code:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>new_animals = [&quot;Rabbit&quot;, &quot;Dolphin&quot;, &quot;Kangaroo&quot;]\n\ntoy_animals.append(new_animals)\nprint(toy_animals)<\/pre><\/div>\n\n\n\n<p>We have defined a new list called new_animals. This list contains the three animals to which we want to add to our original list.<\/p>\n\n\n\n<p>We pass the new_animals list as an argument in the append() method. This lets us add the contents of <em>new_animals<\/em> to our <em>toy_animals<\/em> list. Then, we print the contents of the <em>toy_animals<\/em> list to the console.<\/p>\n\n\n\n<p>Let&#8217;s run our code and see what happens:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>[&quot;Shark&quot;, &quot;Dragon&quot;, &quot;Bear&quot;, &quot;Cat&quot;, &quot;Giraffe&quot;, &quot;Rabbit&quot;, &quot;Dolphin&quot;, &quot;Kangaroo&quot;]<\/pre><\/div>\n\n\n\n<p>The three animals are added to the end of our list. Remember, append() adds items to the end of a list. You cannot specify the position at which an item is added.<\/p>\n\n\n\n<p><strong>View the Repl.it from this tutorial:<\/strong><\/p>\n\n\n\n<iframe loading=\"lazy\" src=\"https:\/\/repl.it\/@careerkarma\/Python-Append-to-List?lite=true\" width=\"100%\" height=\"400px\" frameborder=\"0\"><\/iframe>\n<br>\n<br>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The Python list append() method lets you add an item to the end of a list. You can specify an individual item to add one values to a list. You can specify a list of items to add multiple values to a list. In other words, you can add a single element or multiple elements to a list using append().<\/p>\n\n\n\n<p>Now you\u2019re equipped with the knowledge you need to add items to a list like a <a href=\"https:\/\/careerkarma.com\/blog\/how-to-learn-python\/\">Python expert<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"The append() Python method adds an item to the end of an existing list. The append() method does not create a new list. Instead, original list is changed. append() also lets you add the contents of one list to another list. Arrays are a built-in data structure in Python that can be used to organize&hellip;","protected":false},"author":240,"featured_media":12059,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[16578],"tags":[12687],"class_list":{"0":"post-12056","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-python","8":"tag-tutorial"},"acf":{"post_sub_title":"","sprint_id":"","query_class":"Python","school_sft":"","parent_sft":"","school_privacy_policy":"","has_review":null,"is_sponser_post":"","is_guest_post":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Python Append to List: A Step-By-Step Guide | Career Karma<\/title>\n<meta name=\"description\" content=\"The append() Python method adds an item to the end of an existing list. The append() method does not create a new list.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/careerkarma.com\/blog\/python-append-to-list\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python Append to List: A Step-By-Step Guide\" \/>\n<meta property=\"og:description\" content=\"The append() Python method adds an item to the end of an existing list. The append() method does not create a new list.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/python-append-to-list\/\" \/>\n<meta property=\"og:site_name\" content=\"Career Karma\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/facebook.com\/careerkarmaapp\" \/>\n<meta property=\"article:published_time\" content=\"2020-10-21T06:30:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T12:03:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/PYTHON-APPEND-TO-LIST.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1000\" \/>\n\t<meta property=\"og:image:height\" content=\"668\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"James Gallagher\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@career_karma\" \/>\n<meta name=\"twitter:site\" content=\"@career_karma\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"James Gallagher\" \/>\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:\\\/\\\/careerkarma.com\\\/blog\\\/python-append-to-list\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-append-to-list\\\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"Python Append to List: A Step-By-Step Guide\",\"datePublished\":\"2020-10-21T06:30:40+00:00\",\"dateModified\":\"2023-12-01T12:03:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-append-to-list\\\/\"},\"wordCount\":785,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-append-to-list\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/PYTHON-APPEND-TO-LIST.jpg\",\"keywords\":[\"tutorial\"],\"articleSection\":[\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-append-to-list\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-append-to-list\\\/\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-append-to-list\\\/\",\"name\":\"Python Append to List: A Step-By-Step Guide | Career Karma\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-append-to-list\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-append-to-list\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/PYTHON-APPEND-TO-LIST.jpg\",\"datePublished\":\"2020-10-21T06:30:40+00:00\",\"dateModified\":\"2023-12-01T12:03:15+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"The append() Python method adds an item to the end of an existing list. The append() method does not create a new list.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-append-to-list\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-append-to-list\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-append-to-list\\\/#primaryimage\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/PYTHON-APPEND-TO-LIST.jpg\",\"contentUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/PYTHON-APPEND-TO-LIST.jpg\",\"width\":1000,\"height\":668},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-append-to-list\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog\",\"item\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python\",\"item\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Python Append to List: A Step-By-Step Guide\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/\",\"name\":\"Career Karma\",\"description\":\"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/e79364792443fbff794a144c67ec8e94\",\"name\":\"James Gallagher\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/james-gallagher-150x150.jpg\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/james-gallagher-150x150.jpg\",\"contentUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/james-gallagher-150x150.jpg\",\"caption\":\"James Gallagher\"},\"description\":\"James Gallagher is a self-taught programmer and the technical content manager at Career Karma. He has experience in range of programming languages and extensive expertise in Python, HTML, CSS, and JavaScript. James has written hundreds of programming tutorials, and he frequently contributes to publications like Codecademy, Treehouse, Repl.it, Afrotech, and others.\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/author\\\/jamesgallagher\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Python Append to List: A Step-By-Step Guide | Career Karma","description":"The append() Python method adds an item to the end of an existing list. The append() method does not create a new list.","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:\/\/careerkarma.com\/blog\/python-append-to-list\/","og_locale":"en_US","og_type":"article","og_title":"Python Append to List: A Step-By-Step Guide","og_description":"The append() Python method adds an item to the end of an existing list. The append() method does not create a new list.","og_url":"https:\/\/careerkarma.com\/blog\/python-append-to-list\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-10-21T06:30:40+00:00","article_modified_time":"2023-12-01T12:03:15+00:00","og_image":[{"width":1000,"height":668,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/PYTHON-APPEND-TO-LIST.jpg","type":"image\/jpeg"}],"author":"James Gallagher","twitter_card":"summary_large_image","twitter_creator":"@career_karma","twitter_site":"@career_karma","twitter_misc":{"Written by":"James Gallagher","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/careerkarma.com\/blog\/python-append-to-list\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/python-append-to-list\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"Python Append to List: A Step-By-Step Guide","datePublished":"2020-10-21T06:30:40+00:00","dateModified":"2023-12-01T12:03:15+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-append-to-list\/"},"wordCount":785,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-append-to-list\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/PYTHON-APPEND-TO-LIST.jpg","keywords":["tutorial"],"articleSection":["Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/python-append-to-list\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/python-append-to-list\/","url":"https:\/\/careerkarma.com\/blog\/python-append-to-list\/","name":"Python Append to List: A Step-By-Step Guide | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-append-to-list\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-append-to-list\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/PYTHON-APPEND-TO-LIST.jpg","datePublished":"2020-10-21T06:30:40+00:00","dateModified":"2023-12-01T12:03:15+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"The append() Python method adds an item to the end of an existing list. The append() method does not create a new list.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/python-append-to-list\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/python-append-to-list\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/python-append-to-list\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/PYTHON-APPEND-TO-LIST.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/PYTHON-APPEND-TO-LIST.jpg","width":1000,"height":668},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/python-append-to-list\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/careerkarma.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Python","item":"https:\/\/careerkarma.com\/blog\/python\/"},{"@type":"ListItem","position":3,"name":"Python Append to List: A Step-By-Step Guide"}]},{"@type":"WebSite","@id":"https:\/\/careerkarma.com\/blog\/#website","url":"https:\/\/careerkarma.com\/blog\/","name":"Career Karma","description":"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/careerkarma.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94","name":"James Gallagher","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","caption":"James Gallagher"},"description":"James Gallagher is a self-taught programmer and the technical content manager at Career Karma. He has experience in range of programming languages and extensive expertise in Python, HTML, CSS, and JavaScript. James has written hundreds of programming tutorials, and he frequently contributes to publications like Codecademy, Treehouse, Repl.it, Afrotech, and others.","url":"https:\/\/careerkarma.com\/blog\/author\/jamesgallagher\/"}]}},"_links":{"self":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/12056","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/users\/240"}],"replies":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/comments?post=12056"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/12056\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/12059"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=12056"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=12056"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=12056"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}