{"id":20565,"date":"2020-07-30T20:03:42","date_gmt":"2020-07-31T03:03:42","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=20565"},"modified":"2023-12-01T03:57:10","modified_gmt":"2023-12-01T11:57:10","slug":"python-typeerror-list-indices-must-be-integers-or-slices-not-str","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-or-slices-not-str\/","title":{"rendered":"Python typeerror: list indices must be integers or slices, not str Solution"},"content":{"rendered":"\n<p>String indices must be integers or slices, not strings? What does this error mean? It\u2019s a TypeError, which tells us that we are trying to perform an operation on a value whose type is not compatible with the operation. What\u2019s the solution?<br><\/p>\n\n\n\n<p>In this guide, we\u2019re going to answer all of those questions. We\u2019ll discuss what causes this error in Python and why it is raised. We\u2019ll walk through an example scenario to help you figure out how to solve it. Without further ado, let\u2019s begin!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The Problem: typeerror: list indices must be integers or slices, not str<\/h2>\n\n\n\n<p>Houston, we have a TypeError:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>typeerror: list indices must be integers or slices, not str<\/pre><\/div>\n\n\n\n<p>This error is raised when you try to access a value inside a <a href=\"https:\/\/careerkarma.com\/blog\/python-array\/\">list<\/a> using a string value.<br><\/p>\n\n\n\n<p>Items in <a href=\"https:\/\/careerkarma.com\/blog\/python-substring\/\">lists are indexed<\/a> using numbers. Consider the following list:<br><\/p>\n\n\n\n<table class=\"wp-block-table course-info-table\"><tbody><tr><td>0<\/td><td>1<\/td><td>2<\/td><td>3<\/td><td>4<\/td><td>5<\/td><\/tr><tr><td>S<\/td><td>t<\/td><td>r<\/td><td>i<\/td><td>n<\/td><td>g<\/td><\/tr><\/tbody><\/table>\n\n\n\n<p><\/p>\n\n\n\n<p>To access values in this string, we can use index slicing. This is when you call a string followed by an index value to retrieve the character at that position:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>example_string = &quot;String&quot;\n\nprint(example_string[0])<\/pre><\/div>\n\n\n\n<p>This code returns: <code>S<\/code>. Our code retrieves the character at the index position 0 in our list.<br><\/p>\n\n\n\n<p>If you try to access a list using a letter, like &#8220;S&#8221;, an error will occur.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">An Example Scenario<\/h2>\n\n\n\n<p>The error &#8220;typeerror: list indices must be integers or slices, not str&#8221; is commonly raised when you try to access an item in a list of <a href=\"https:\/\/careerkarma.com\/blog\/python-json\/\">JSON objects<\/a> as if it were a list.<br><\/p>\n\n\n\n<p>Consider the following code snippet:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>students = [\n\t{\n\t\t&quot;name&quot;: &quot;Lisa Simpson&quot;,\t\n\t\t&quot;age&quot;: 8\n\t},\n\t{\n\t\t&quot;name&quot;: &quot;Janey Powell&quot;,\n\t\t&quot;age&quot;: 9\n\t},\n\t{\n\t\t&quot;name&quot;: &quot;Ralph Wiggum&quot;,\n\t\t&quot;age&quot;: 8\n\t}\n]\n\nto_find = input(&quot;Enter the name of the student whose age you want to find: &quot;)\n\nfor s in students:\n\tif students[&quot;name&quot;] == to_find:\n\t\tprint(&quot;The age of {} is {}.&quot;.format(students[&quot;name&quot;], students[&quot;age&quot;]))<\/pre><\/div>\n\n\n\n<p>This code snippet finds the age of a particular student in a class. First, we have declared a list of students. This list stores each student as a JSON object.<br><\/p>\n\n\n\n<p>Next, we ask the user to enter the name of the student whose age they want to find. Our program then iterates over each student in the list using a <a href=\"https:\/\/careerkarma.com\/blog\/python-for-loop\/\">for loop<\/a> to find the student whose name matches the one we have specified.<br><\/p>\n\n\n\n<p>If that particular name is found, the age of the student is printed to the console. Otherwise, nothing happens.<br><\/p>\n\n\n\n<p>Let\u2019s try to run our code:<\/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 19, in &lt;module&gt;\n\tif students[&quot;name&quot;] == to_find:\nTypeError: list indices must be integers or slices, not str<\/pre><\/div>\n\n\n\n<p>Oh no. It\u2019s a TypeError!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The Solution<\/h2>\n\n\n\n<p>You can solve the error &#8220;typeerror: list indices must be integers or slices, not str&#8221; by making sure that you access items in a list using index numbers, not strings.<br><\/p>\n\n\n\n<p>The problem in our code is that we&#8217;re trying to access &#8220;name&#8221; in our list of students:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>students[&quot;name&quot;]<\/pre><\/div>\n\n\n\n<p>This corresponds with no value because our list contains multiple JSON objects. To solve this problem, we\u2019re going to use a <a href=\"https:\/\/careerkarma.com\/blog\/python-range\/\">range() statement<\/a> to iterate over our list of students. Then, we\u2019ll access each student by their index number:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>for s in range(len(students)):\n\tif students[s][&quot;name&quot;] == to_find:\n\t\tprint(&quot;The age of {} is {}.&quot;.format(students[s][&quot;name&quot;], students[s][&quot;age&quot;]))<\/pre><\/div>\n\n\n\n<p>To start, we have used a range statement. This will allow us to iterate over every student in our list. We\u2019ve replaced every instance of &#8220;students[&#8220;key_name&#8221;]&#8221; with &#8220;students[s][&#8220;key_name&#8221;]&#8221;. This allows us to access each value in the list.<br><\/p>\n\n\n\n<p>Let\u2019s run our code and see what happens:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>Enter the name of the student whose age you want to find: Lisa Simpson\nThe age of Lisa Simpson is 9.<\/pre><\/div>\n\n\n\n<p>Our code has successfully found the age of Lisa Simpson.<br><\/p>\n\n\n\n<p>We access each value in the &#8220;students&#8221; list using its index number instead of a string. Problem solved!<\/p>\n\n\n\n<iframe loading=\"lazy\" frameborder=\"0\" width=\"100%\" height=\"400px\" src=\"https:\/\/repl.it\/@careerkarma\/typeerror-list-indices-must-be-integers-or-slices-not-str?lite=true\"><\/iframe>\n<br>\n<br>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The error &#8220;typeerror: list indices must be integers or slices, not str&#8221; is raised when you try to access a list using string values instead of an integer. To solve this problem, make sure that you access a list using an index number.<br><\/p>\n\n\n\n<p>A common scenario where this error is raised is when you iterate over a list and compare objects in the list. To solve this error, we used a <code>range()<\/code> statement so that we could access each value in &#8220;students&#8221; individually.<br><\/p>\n\n\n\n<p>Now you\u2019re ready to solve this error like a Python expert!<\/p>\n","protected":false},"excerpt":{"rendered":"String indices must be integers or slices, not strings? What does this error mean? It\u2019s a TypeError, which tells us that we are trying to perform an operation on a value whose type is not compatible with the operation. What\u2019s the solution? In this guide, we\u2019re going to answer all of those questions. We\u2019ll discuss&hellip;","protected":false},"author":240,"featured_media":18651,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[16578],"tags":[],"class_list":{"0":"post-20565","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>TypeError: list indices must be integers or slices, not str | Career Karma<\/title>\n<meta name=\"description\" content=\"The Python typeerror: list indices must be integers or slices, not str error is raised when you try to access a list using a string index value. 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-list-indices-must-be-integers-or-slices-not-str\/\" \/>\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 or slices, not str Solution\" \/>\n<meta property=\"og:description\" content=\"The Python typeerror: list indices must be integers or slices, not str error is raised when you try to access a list using a string index value. On Career Karma, learn how to fix this error.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-or-slices-not-str\/\" \/>\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-07-31T03:03:42+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T11:57:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/sabri-tuzcu-wkO0q0UTqc8-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-list-indices-must-be-integers-or-slices-not-str\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-or-slices-not-str\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"Python typeerror: list indices must be integers or slices, not str Solution\",\"datePublished\":\"2020-07-31T03:03:42+00:00\",\"dateModified\":\"2023-12-01T11:57:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-or-slices-not-str\/\"},\"wordCount\":632,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-or-slices-not-str\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/sabri-tuzcu-wkO0q0UTqc8-unsplash.jpg\",\"articleSection\":[\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-or-slices-not-str\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-or-slices-not-str\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-or-slices-not-str\/\",\"name\":\"TypeError: list indices must be integers or slices, not str | Career Karma\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-or-slices-not-str\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-or-slices-not-str\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/sabri-tuzcu-wkO0q0UTqc8-unsplash.jpg\",\"datePublished\":\"2020-07-31T03:03:42+00:00\",\"dateModified\":\"2023-12-01T11:57:10+00:00\",\"author\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"The Python typeerror: list indices must be integers or slices, not str error is raised when you try to access a list using a string index value. On Career Karma, learn how to fix this error.\",\"breadcrumb\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-or-slices-not-str\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-or-slices-not-str\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-or-slices-not-str\/#primaryimage\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/sabri-tuzcu-wkO0q0UTqc8-unsplash.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/sabri-tuzcu-wkO0q0UTqc8-unsplash.jpg\",\"width\":1020,\"height\":680},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-or-slices-not-str\/#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 or slices, not str 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":"TypeError: list indices must be integers or slices, not str | Career Karma","description":"The Python typeerror: list indices must be integers or slices, not str error is raised when you try to access a list using a string index value. 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-list-indices-must-be-integers-or-slices-not-str\/","og_locale":"en_US","og_type":"article","og_title":"Python typeerror: list indices must be integers or slices, not str Solution","og_description":"The Python typeerror: list indices must be integers or slices, not str error is raised when you try to access a list using a string index value. On Career Karma, learn how to fix this error.","og_url":"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-or-slices-not-str\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-07-31T03:03:42+00:00","article_modified_time":"2023-12-01T11:57:10+00:00","og_image":[{"width":1020,"height":680,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/sabri-tuzcu-wkO0q0UTqc8-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-or-slices-not-str\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-or-slices-not-str\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"Python typeerror: list indices must be integers or slices, not str Solution","datePublished":"2020-07-31T03:03:42+00:00","dateModified":"2023-12-01T11:57:10+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-or-slices-not-str\/"},"wordCount":632,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-or-slices-not-str\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/sabri-tuzcu-wkO0q0UTqc8-unsplash.jpg","articleSection":["Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-or-slices-not-str\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-or-slices-not-str\/","url":"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-or-slices-not-str\/","name":"TypeError: list indices must be integers or slices, not str | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-or-slices-not-str\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-or-slices-not-str\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/sabri-tuzcu-wkO0q0UTqc8-unsplash.jpg","datePublished":"2020-07-31T03:03:42+00:00","dateModified":"2023-12-01T11:57:10+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"The Python typeerror: list indices must be integers or slices, not str error is raised when you try to access a list using a string index value. On Career Karma, learn how to fix this error.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-or-slices-not-str\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-or-slices-not-str\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-or-slices-not-str\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/sabri-tuzcu-wkO0q0UTqc8-unsplash.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/sabri-tuzcu-wkO0q0UTqc8-unsplash.jpg","width":1020,"height":680},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-or-slices-not-str\/#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 or slices, not str 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\/20565","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=20565"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/20565\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/18651"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=20565"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=20565"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=20565"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}