{"id":21617,"date":"2020-08-25T15:36:20","date_gmt":"2020-08-25T22:36:20","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=21617"},"modified":"2023-12-01T03:58:49","modified_gmt":"2023-12-01T11:58:49","slug":"python-typeerror-list-indices-must-be-integers-not-tuple","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-not-tuple\/","title":{"rendered":"Python TypeError: list indices must be integers, not tuple Solution"},"content":{"rendered":"\n<p><a href=\"https:\/\/careerkarma.com\/blog\/python-index\/\">Lists are indexed using numbers<\/a>. This means if you want to access an item from a list, you have to refer to its index position. If you specify a tuple as a list index value, you encounter the \u201cTypeError: list indices must be integers, not tuple\u201d error.<br><\/p>\n\n\n\n<p>In this guide, we talk about what this error means and where you may encounter it. We walk through an example of this error so you can learn how to overcome it in your code.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">TypeError: list indices must be integers, not tuple<\/h2>\n\n\n\n<p>Lists are indexed starting from the value 0. Every subsequent value has an index number 1 greater than the last. Consider the following <a href=\"https:\/\/careerkarma.com\/blog\/python-array\/\">list<\/a>:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>coffee_growers = [&quot;Ethiopia&quot;, &quot;Kenya&quot;, &quot;Rwanda&quot;, &quot;Brazil&quot;]<\/pre><\/div>\n\n\n\n<p>This list has four values. Ethiopia has an index value 0, Kenya has an index value 1, and so on. To access items from this list, we reference these values:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>print(coffee_growers[0])<\/pre><\/div>\n\n\n\n<p>Our code returns \u201cEthiopia\u201d.<br><\/p>\n\n\n\n<p>We cannot specify a tuple value to access an item from a list. This is because <a href=\"https:\/\/careerkarma.com\/blog\/python-tuples\/\">tuples<\/a> do not correspond to any index value in a list.<br><\/p>\n\n\n\n<p>The \u201cTypeError: list indices must be integers, not tuple\u201d error is most common in a list of lists that is missing a comma separator between each value in the 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 information about some UK birds. Start by defining a list of birds:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>birds = [\n\t\t[&quot;Barn Owl&quot;, &quot;Owl&quot;, &quot;Green&quot;]\n\t\t[&quot;Black tern&quot;, &quot;Gulls and terns&quot;, &quot;Green&quot;]\n]<\/pre><\/div>\n\n\n\n<p>The first item in each list is the name of a bird; the second item is the family of a bird; the third item is the UK conservation status of that bird. Next, we ask a user to add a record to our list. We do this using the <a href=\"https:\/\/careerkarma.com\/blog\/python-input\/\">input() method<\/a>:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>name = input(&quot;Enter the name of the bird: &quot;)\nfamily = input(&quot;Enter the family of the bird: &quot;)\nconservation_status = input(&quot;Enter the conservation status of the bird: &quot;)<\/pre><\/div>\n\n\n\n<p>Now that we\u2019ve collected this data, we can add information about a bird to our list of birds. We do this using the <code>append()<\/code> method:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>birds.append([name, family, conservation_status])\nprint(birds)<\/pre><\/div>\n\n\n\n<p>Our code prints out our new list of birds after the record we want to add is added to the list. Let\u2019s run our code and see what happens:<br><\/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 2, in &lt;module&gt;\n\t[&quot;Barn Owl&quot;, &quot;Owl&quot;, &quot;Green&quot;]\nTypeError: list indices must be integers or slices, not tuple<\/pre><\/div>\n\n\n\n<p>Our code returns an error. Notice our error occurs before we are asked to insert information about a bird. If we look at our stack trace, we see the problem is on line two of our code, which is within our list declaration.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The Solution<\/h2>\n\n\n\n<p>The problem with our code is that we\u2019ve forgotten to include commas between the values in our list. This causes an issue because without commas our list interprets the second record as an index value for the first record:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>birds = [\n\t\t[&quot;Barn Owl&quot;, &quot;Owl&quot;, &quot;Green&quot;]\n\t\t[&quot;Black tern&quot;, &quot;Gulls and terns&quot;, &quot;Green&quot;]\n]<\/pre><\/div>\n\n\n\n<p>Python reads this code as:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>[&quot;Barn Owl&quot;, &quot;Owl&quot;, &quot;Green&quot;][&quot;Black tern&quot;, &quot;Gulls and terns&quot;, &quot;Green&quot;]<\/pre><\/div>\n\n\n\n<p>The second list cannot be an index value for the first list. Index values must be numbers. Our code says that we\u2019ve specified a tuple because our second list is reduced so it has multiple values.<br><\/p>\n\n\n\n<p>To solve this problem, we must separate the lists in our list of lists using a comma:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>birds = [\n\t\t[&quot;Barn Owl&quot;, &quot;Owl&quot;, &quot;Green&quot;],\n\t\t[&quot;Black tern&quot;, &quot;Gulls and terns&quot;, &quot;Green&quot;]\n]<\/pre><\/div>\n\n\n\n<p>Try to run our code with the comma in the birds list:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>Enter the name of the bird: Pied Wagtail\nEnter the family of the bird: Pipits and wagtails\nEnter the conservation status of the bird: Green\n[['Barn Owl', 'Owl', 'Green'], ['Black tern', 'Gulls and terns', 'Green'], ['Pied Wagtail', 'Pipits and wagtails', 'Green']]<\/pre><\/div>\n\n\n\n<p>Our code executes successfully. First, we\u2019re asked to insert information about a bird. Our code then adds that information to our list of birds. Finally, our code prints out the list of birds. We see our new record is added to the end of the list.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The \u201cTypeError: list indices must be integers, not tuple\u201d error occurs when you specify a tuple as an index value at the end of a list. To solve this problem, make sure that any lists in a list of lists are separated using commas.<br><\/p>\n\n\n\n<p>Now you\u2019re ready to solve this common Python error like a <a href=\"https:\/\/careerkarma.com\/blog\/python-programming-language\/\">professional developer<\/a>!<\/p>\n","protected":false},"excerpt":{"rendered":"Lists are indexed using numbers. This means if you want to access an item from a list, you have to refer to its index position. If you specify a tuple as a list index value, you encounter the \u201cTypeError: list indices must be integers, not tuple\u201d error. In this guide, we talk about what this&hellip;","protected":false},"author":240,"featured_media":21618,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[16578],"tags":[],"class_list":{"0":"post-21617","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: list indices must be integers, not tuple | Career Karma<\/title>\n<meta name=\"description\" content=\"On Career Karma, learn about the Python TypeError: list indices must be integers, not tuple error, how the error works, and how to solve the 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-list-indices-must-be-integers-not-tuple\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python TypeError: list indices must be integers, not tuple Solution\" \/>\n<meta property=\"og:description\" content=\"On Career Karma, learn about the Python TypeError: list indices must be integers, not tuple error, how the error works, and how to solve the error.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-not-tuple\/\" \/>\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-25T22:36:20+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T11:58:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/emile-perron-xrVDYZRGdw4-unsplash.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1020\" \/>\n\t<meta property=\"og:image:height\" content=\"574\" \/>\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-list-indices-must-be-integers-not-tuple\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-not-tuple\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"Python TypeError: list indices must be integers, not tuple Solution\",\"datePublished\":\"2020-08-25T22:36:20+00:00\",\"dateModified\":\"2023-12-01T11:58:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-not-tuple\/\"},\"wordCount\":603,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-not-tuple\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/emile-perron-xrVDYZRGdw4-unsplash.jpg\",\"articleSection\":[\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-not-tuple\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-not-tuple\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-not-tuple\/\",\"name\":\"Python TypeError: list indices must be integers, not tuple | Career Karma\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-not-tuple\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-not-tuple\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/emile-perron-xrVDYZRGdw4-unsplash.jpg\",\"datePublished\":\"2020-08-25T22:36:20+00:00\",\"dateModified\":\"2023-12-01T11:58:49+00:00\",\"author\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"On Career Karma, learn about the Python TypeError: list indices must be integers, not tuple error, how the error works, and how to solve the error.\",\"breadcrumb\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-not-tuple\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-not-tuple\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-not-tuple\/#primaryimage\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/emile-perron-xrVDYZRGdw4-unsplash.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/emile-perron-xrVDYZRGdw4-unsplash.jpg\",\"width\":1020,\"height\":574},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-not-tuple\/#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: list indices must be integers, not tuple 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: list indices must be integers, not tuple | Career Karma","description":"On Career Karma, learn about the Python TypeError: list indices must be integers, not tuple error, how the error works, and how to solve the 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-list-indices-must-be-integers-not-tuple\/","og_locale":"en_US","og_type":"article","og_title":"Python TypeError: list indices must be integers, not tuple Solution","og_description":"On Career Karma, learn about the Python TypeError: list indices must be integers, not tuple error, how the error works, and how to solve the error.","og_url":"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-not-tuple\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-08-25T22:36:20+00:00","article_modified_time":"2023-12-01T11:58:49+00:00","og_image":[{"width":1020,"height":574,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/emile-perron-xrVDYZRGdw4-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-list-indices-must-be-integers-not-tuple\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-not-tuple\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"Python TypeError: list indices must be integers, not tuple Solution","datePublished":"2020-08-25T22:36:20+00:00","dateModified":"2023-12-01T11:58:49+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-not-tuple\/"},"wordCount":603,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-not-tuple\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/emile-perron-xrVDYZRGdw4-unsplash.jpg","articleSection":["Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-not-tuple\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-not-tuple\/","url":"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-not-tuple\/","name":"Python TypeError: list indices must be integers, not tuple | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-not-tuple\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-not-tuple\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/emile-perron-xrVDYZRGdw4-unsplash.jpg","datePublished":"2020-08-25T22:36:20+00:00","dateModified":"2023-12-01T11:58:49+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"On Career Karma, learn about the Python TypeError: list indices must be integers, not tuple error, how the error works, and how to solve the error.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-not-tuple\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-not-tuple\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-not-tuple\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/emile-perron-xrVDYZRGdw4-unsplash.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/emile-perron-xrVDYZRGdw4-unsplash.jpg","width":1020,"height":574},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-not-tuple\/#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: list indices must be integers, not tuple 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\/21617","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=21617"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/21617\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/21618"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=21617"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=21617"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=21617"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}