{"id":21602,"date":"2020-08-25T13:46:00","date_gmt":"2020-08-25T20:46:00","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=21602"},"modified":"2023-12-01T03:58:47","modified_gmt":"2023-12-01T11:58:47","slug":"python-typeerror-can-only-concatenate-list-not-int-to-list","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/python-typeerror-can-only-concatenate-list-not-int-to-list\/","title":{"rendered":"Python TypeError: can only concatenate list (not \u201cint\u201d) to list Solution"},"content":{"rendered":"\n<p><a href=\"https:\/\/careerkarma.com\/blog\/python-array\/\">Lists can be concatenated to other lists<\/a>. This means you can add the contents of one list to another list. Values with other data types, such as integers, cannot be concatenated to a list.<br><\/p>\n\n\n\n<p>If you try to concatenate an integer to a list, the Python interpreter returns a \u201cTypeError: can only concatenate list (not \u201cint\u201d) to list\u201d error.<br><\/p>\n\n\n\n<p>In this guide, we talk about what this error means and how it works. We walk through an example to help you navigate fixing this issue in your code.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">TypeError: can only concatenate list (not \u201cint\u201d) to list<\/h2>\n\n\n\n<p>Concatenation makes it easy to add two lists together. While you can use the <a href=\"https:\/\/careerkarma.com\/blog\/python-append-to-list\/\">extend()<\/a> method to add a list to another list, concatenation only requires the use of one symbol: the plus sign (+).<br><\/p>\n\n\n\n<p>Lists are not the only object which can be concatenated. Any iterable object, such as a dictionary or a tuple, can be concatenated.<br><\/p>\n\n\n\n<p>Two objects of different data types cannot be concatenated. This means you cannot concatenate a list with a dictionary, or an integer with a list.<br><\/p>\n\n\n\n<p>You encounter the \u201cTypeError: can only concatenate list (not \u201cint\u201d) to list&#8221; if you use concatenation to add a single integer item to a list.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">An Example Scenario<\/h2>\n\n\n\n<p>We\u2019re going to build a program that tracks how many orders have been placed for particular sandwiches at a cafe on a Friday. We want to filter out all of the sandwiches that have been ordered more than 75 times so we can see what sandwiches are most popular.<br><\/p>\n\n\n\n<p>We start by defining two lists: a list of sandwiches and a list containing how many orders were placed for each sandwich.<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>sandwiches = [&quot;Egg and Cress&quot;, &quot;Chicken Club&quot;, &quot;Hummus and Tomato&quot;, &quot;Cheese&quot;]\norders = [54, 77, 22, 98]<\/pre><\/div>\n\n\n\n<p>Our lists are assigned to the <a href=\"https:\/\/careerkarma.com\/blog\/python-variables\/\">variables<\/a> \u201csandwiches\u201d and \u201corders\u201d. Next, we define a list which tracks the index numbers of the sandwiches that have been ordered more than 75 times.<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>orders_75 = []<\/pre><\/div>\n\n\n\n<p>At the moment, these lists are empty. This is because we have not yet figured out which sandwiches have been ordered over 75 times.<br><\/p>\n\n\n\n<p>Next, we iterate over our lists of sandwiches and orders to find out which sandwiches have been ordered more than 75 times. We can do this using a <a href=\"https:\/\/careerkarma.com\/blog\/python-for-loop\/\">for loop<\/a>:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>for s in range(0, len(sandwiches)):\n\tif orders[s] &gt; 75:\n\t\torders_75 = orders_75 + s<\/pre><\/div>\n\n\n\n<p>Our code loops through each number in the range of 0 and the length of the \u201csandwiches\u201d list. If the corresponding value in the \u201corders\u201d list for a sandwich is greater than 75, we add the index position of that sandwich to the \u201corders_75\u201d list.<br><\/p>\n\n\n\n<p>Next, we write a for loop that prints out which sandwiches have been ordered more than 75 times to check if our program works:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>for o in orders_75:\n\tprint(sandwiches[o])<\/pre><\/div>\n\n\n\n<p>Let\u2019s run our Python code and see what happens:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>Traceback (most recent call last):\n  File &quot;main.py&quot;, line 9, in &lt;module&gt;\n\torders_75 = orders_75 + s\nTypeError: can only concatenate list (not &quot;int&quot;) to list<\/pre><\/div>\n\n\n\n<p>Our code returns an error.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The Solution<\/h2>\n\n\n\n<p>Take a look at the line of code mentioned in our error message:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>\torders_75 = orders_75 + s<\/pre><\/div>\n\n\n\n<p>We\u2019re trying to <a href=\"https:\/\/careerkarma.com\/blog\/python-concatenate-strings\/\">concatenate<\/a> an integer value to our list. We cannot do this because concatenation only works on iterable objects of the same data type.<br><\/p>\n\n\n\n<p>To solve this error, we must use the <code>append()<\/code> method to add an item to our list. This method is specifically designed to add items to lists. Items can be of any data type, such as dictionaries, integers, or floating-point numbers.<br><\/p>\n\n\n\n<p>Change our orders_75 line of code to use the <code>append()<\/code> method:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>\torders_75.append(s)<\/pre><\/div>\n\n\n\n<p>We do not need to assign any values to \u201corders_75\u201d because the <code>append()<\/code> method adds an item to a list in-place. Let\u2019s execute our code:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>Chicken Club\nCheese<\/pre><\/div>\n\n\n\n<p>Our code prints a list of the sandwiches that have been ordered more than 75 times. There are two sandwiches that met this criteria: Chicken Club and Cheese.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The \u201cTypeError: can only concatenate list (not \u201cint\u201d) to list\u201d error is raised when you try to concatenate an integer to a list.<br><\/p>\n\n\n\n<p>This error is raised because only lists can be concatenated to lists. To solve this error, use the <code>append()<\/code> method to add an item to a list.<br><\/p>\n\n\n\n<p>Now you\u2019re ready to solve this Python error <a href=\"https:\/\/careerkarma.com\/blog\/how-long-to-learn-python\/\">like a professional<\/a>!<\/p>\n","protected":false},"excerpt":{"rendered":"Lists can be concatenated to other lists. This means you can add the contents of one list to another list. Values with other data types, such as integers, cannot be concatenated to a list. If you try to concatenate an integer to a list, the Python interpreter returns a \u201cTypeError: can only concatenate list (not&hellip;","protected":false},"author":240,"featured_media":20628,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[16578],"tags":[],"class_list":{"0":"post-21602","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-python"},"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.0 (Yoast SEO v27.0) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Python TypeError: can only concatenate list (not \u201cint\u201d) to list<\/title>\n<meta name=\"description\" content=\"The Python TypeError: can only concatenate list (not \u201cint\u201d) to list is raised when you try to concatenate an integer to a list. On Career Karma, learn how to fix this error.\" \/>\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-typeerror-can-only-concatenate-list-not-int-to-list\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python TypeError: can only concatenate list (not \u201cint\u201d) to list Solution\" \/>\n<meta property=\"og:description\" content=\"The Python TypeError: can only concatenate list (not \u201cint\u201d) to list is raised when you try to concatenate an integer to a list. On Career Karma, learn how to fix this error.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/python-typeerror-can-only-concatenate-list-not-int-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-08-25T20:46:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T11:58:47+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/gustas-brazaitis-xNKy-Cu20d4-unsplash.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1020\" \/>\n\t<meta property=\"og:image:height\" content=\"680\" \/>\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-typeerror-can-only-concatenate-list-not-int-to-list\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-can-only-concatenate-list-not-int-to-list\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"Python TypeError: can only concatenate list (not \u201cint\u201d) to list Solution\",\"datePublished\":\"2020-08-25T20:46:00+00:00\",\"dateModified\":\"2023-12-01T11:58:47+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-can-only-concatenate-list-not-int-to-list\/\"},\"wordCount\":658,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-can-only-concatenate-list-not-int-to-list\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/gustas-brazaitis-xNKy-Cu20d4-unsplash.jpg\",\"articleSection\":[\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/careerkarma.com\/blog\/python-typeerror-can-only-concatenate-list-not-int-to-list\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-can-only-concatenate-list-not-int-to-list\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-can-only-concatenate-list-not-int-to-list\/\",\"name\":\"Python TypeError: can only concatenate list (not \u201cint\u201d) to list\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-can-only-concatenate-list-not-int-to-list\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-can-only-concatenate-list-not-int-to-list\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/gustas-brazaitis-xNKy-Cu20d4-unsplash.jpg\",\"datePublished\":\"2020-08-25T20:46:00+00:00\",\"dateModified\":\"2023-12-01T11:58:47+00:00\",\"author\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"The Python TypeError: can only concatenate list (not \u201cint\u201d) to list is raised when you try to concatenate an integer to a list. On Career Karma, learn how to fix this error.\",\"breadcrumb\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-can-only-concatenate-list-not-int-to-list\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/careerkarma.com\/blog\/python-typeerror-can-only-concatenate-list-not-int-to-list\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-can-only-concatenate-list-not-int-to-list\/#primaryimage\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/gustas-brazaitis-xNKy-Cu20d4-unsplash.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/gustas-brazaitis-xNKy-Cu20d4-unsplash.jpg\",\"width\":1020,\"height\":680},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-can-only-concatenate-list-not-int-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 TypeError: can only concatenate list (not \u201cint\u201d) to list Solution\"}]},{\"@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\/#\/schema\/person\/image\/\",\"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 TypeError: can only concatenate list (not \u201cint\u201d) to list","description":"The Python TypeError: can only concatenate list (not \u201cint\u201d) to list is raised when you try to concatenate an integer to a list. On Career Karma, learn how to fix this error.","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-typeerror-can-only-concatenate-list-not-int-to-list\/","og_locale":"en_US","og_type":"article","og_title":"Python TypeError: can only concatenate list (not \u201cint\u201d) to list Solution","og_description":"The Python TypeError: can only concatenate list (not \u201cint\u201d) to list is raised when you try to concatenate an integer to a list. On Career Karma, learn how to fix this error.","og_url":"https:\/\/careerkarma.com\/blog\/python-typeerror-can-only-concatenate-list-not-int-to-list\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-08-25T20:46:00+00:00","article_modified_time":"2023-12-01T11:58:47+00:00","og_image":[{"width":1020,"height":680,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/gustas-brazaitis-xNKy-Cu20d4-unsplash.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-typeerror-can-only-concatenate-list-not-int-to-list\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-can-only-concatenate-list-not-int-to-list\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"Python TypeError: can only concatenate list (not \u201cint\u201d) to list Solution","datePublished":"2020-08-25T20:46:00+00:00","dateModified":"2023-12-01T11:58:47+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-can-only-concatenate-list-not-int-to-list\/"},"wordCount":658,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-can-only-concatenate-list-not-int-to-list\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/gustas-brazaitis-xNKy-Cu20d4-unsplash.jpg","articleSection":["Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/python-typeerror-can-only-concatenate-list-not-int-to-list\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-can-only-concatenate-list-not-int-to-list\/","url":"https:\/\/careerkarma.com\/blog\/python-typeerror-can-only-concatenate-list-not-int-to-list\/","name":"Python TypeError: can only concatenate list (not \u201cint\u201d) to list","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-can-only-concatenate-list-not-int-to-list\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-can-only-concatenate-list-not-int-to-list\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/gustas-brazaitis-xNKy-Cu20d4-unsplash.jpg","datePublished":"2020-08-25T20:46:00+00:00","dateModified":"2023-12-01T11:58:47+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"The Python TypeError: can only concatenate list (not \u201cint\u201d) to list is raised when you try to concatenate an integer to a list. On Career Karma, learn how to fix this error.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-can-only-concatenate-list-not-int-to-list\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/python-typeerror-can-only-concatenate-list-not-int-to-list\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-can-only-concatenate-list-not-int-to-list\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/gustas-brazaitis-xNKy-Cu20d4-unsplash.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/gustas-brazaitis-xNKy-Cu20d4-unsplash.jpg","width":1020,"height":680},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-can-only-concatenate-list-not-int-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 TypeError: can only concatenate list (not \u201cint\u201d) to list Solution"}]},{"@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\/#\/schema\/person\/image\/","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\/21602","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=21602"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/21602\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/20628"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=21602"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=21602"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=21602"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}