{"id":21622,"date":"2020-08-25T16:25:08","date_gmt":"2020-08-25T23:25:08","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=21622"},"modified":"2023-12-01T03:58:50","modified_gmt":"2023-12-01T11:58:50","slug":"python-typeerror-nonetype-object-is-not-subscriptable","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/python-typeerror-nonetype-object-is-not-subscriptable\/","title":{"rendered":"Python TypeError: \u2018NoneType\u2019 object is not subscriptable Solution"},"content":{"rendered":"\n<p>Python objects with the value None cannot be accessed using <a href=\"https:\/\/careerkarma.com\/blog\/python-index\/\">indexing<\/a>. This is because None values do not contain data with index numbers.<br><\/p>\n\n\n\n<p>If you try to access an item from a None value using indexing, you encounter a \u201cTypeError: \u2018NoneType\u2019 object is not subscriptable\u201d error.<br><\/p>\n\n\n\n<p>In this guide, we talk about what this error means and break down how it works. We walk through an example of this error so you can figure out how to solve it in your program.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">TypeError: \u2018NoneType\u2019 object is not subscriptable<\/h2>\n\n\n\n<p>Subscriptable objects are values accessed using indexing. \u201cIndexing\u201d is another word to say &#8220;subscript&#8221;, which refers to working with individual parts of a larger collection.<br><\/p>\n\n\n\n<p>For instance, <a href=\"https:\/\/careerkarma.com\/blog\/python-array\/\">lists<\/a>, <a href=\"https:\/\/careerkarma.com\/blog\/python-tuples\/\">tuples<\/a>, and dictionaries are all subscriptable objects. You can retrieve items from these objects using indexing. None values are not subscriptable because they are not part of any larger set of values.<br><\/p>\n\n\n\n<p>The \u201cTypeError: \u2018NoneType\u2019 object is not subscriptable\u201d error is common if you assign the result of a built-in list method like <code>sort()<\/code>, <code>reverse()<\/code>, or <code>append()<\/code> to a variable. This is because these list methods change an existing list in-place. As a result, they return a None value.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">An Example Scenario<\/h2>\n\n\n\n<p>Build an application that tracks information about a student&#8217;s test scores at school. We begin by defining a list of student test scores:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>scores = [\n\t   { &quot;name&quot;: &quot;Tom&quot;, &quot;score&quot;: 72, &quot;grade&quot;: &quot;B&quot; },\n\t   { &quot;name&quot;: &quot;Lindsay&quot;, &quot;score&quot;: 79, &quot;grade&quot;: &quot;A&quot; }\n]<\/pre><\/div>\n\n\n\n<p>Our list of student test scores contains two <a href=\"https:\/\/careerkarma.com\/blog\/python-add-to-dictionary\/\">dictionaries<\/a>. Next, we ask the user to insert information that should be added to the \u201cscores\u201d list:<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 student: &quot;)\nscore = input(&quot;Enter the test score the student earned: &quot;)\ngrade = input(&quot;Enter the grade the student earned: &quot;)<\/pre><\/div>\n\n\n\n<p>We track three pieces of data: the name of a student, their test score, and their test score represented as a letter grade.<br><\/p>\n\n\n\n<p>Next, we append this information to our \u201cscores\u201d list. We do this by creating a dictionary which we will add to the list using the <a href=\"https:\/\/careerkarma.com\/blog\/python-append-to-list\/\">append() method<\/a>:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>new_scores = scores.append(\n\t{ &quot;name&quot;: name, &quot;score&quot;: score, &quot;grade&quot;: grade }\n)<\/pre><\/div>\n\n\n\n<p>This code adds a new record to the \u201cscores\u201d list. The result of the <code>append()<\/code> method is assigned to the variable \u201cnew_scores\u201d.<br><\/p>\n\n\n\n<p>Finally, print out the last item in our \u201cnew_scores\u201d list so we can see if it worked:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>print(new_scores[-1])<\/pre><\/div>\n\n\n\n<p>The value -1 represents the last item in the list. Run our code and see what happens:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>Enter the name of the student: Wendell\nEnter the test score the student earned: 64\nEnter the grade the student earned: C\nTraceback (most recent call last):\n  File &quot;main.py&quot;, line 14, in &lt;module&gt;\n\tprint(new_scores[-1])\nTypeError: 'NoneType' object is not subscriptable<\/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>Our code successfully asks our user to insert information about a student. Our code then adds a record to the \u201cnew_scores\u201d list. The problem is when we try to access an item from the \u201cnew_scores\u201d list.<br><\/p>\n\n\n\n<p>Our code does not work because <code>append()<\/code> returns None. This means we\u2019re assigning a None value to \u201cnew_scores\u201d. <code>append()<\/code> returns None because it adds an item to an existing list. The <code>append()<\/code> method does not create a new list.<br><\/p>\n\n\n\n<p>To solve this error, we must remove the declaration of the \u201cnew_scores\u201d <a href=\"https:\/\/careerkarma.com\/blog\/python-variables\/\">variable<\/a> and leave <code>scores.append()<\/code> on its own line:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>scores.append(\n\t{ &quot;name&quot;: name, &quot;score&quot;: score, &quot;grade&quot;: grade }\n)\nprint(scores[-1])<\/pre><\/div>\n\n\n\n<p>We now only reference the \u201cscores\u201d variable. Let\u2019s see what happens when we execute our program:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>Enter the name of the student: Wendell\nEnter the test score the student earned: 64\nEnter the grade the student earned: C\n{'name': 'Wendell', 'score': '64', 'grade': 'C'}<\/pre><\/div>\n\n\n\n<p>Our code runs successfully. First, our user is asked to insert information about a student\u2019s test scores. Then, we add that information to the \u201cscores\u201d dictionary. Our code prints out the new dictionary value that has been added to our list so we know our code has worked.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The \u201cTypeError: \u2018NoneType\u2019 object is not subscriptable\u201d error is raised when you try to access items from a None value using indexing.<br><\/p>\n\n\n\n<p>This is common if you use a built-in method to manipulate a list and assign the result of that method to a variable. Built-in methods return a None value which cannot be manipulated using the indexing syntax.<br><\/p>\n\n\n\n<p>Now you\u2019re ready to solve this common Python error like an expert.<\/p>\n","protected":false},"excerpt":{"rendered":"Python objects with the value None cannot be accessed using indexing. This is because None values do not contain data with index numbers. If you try to access an item from a None value using indexing, you encounter a \u201cTypeError: \u2018NoneType\u2019 object is not subscriptable\u201d error. In this guide, we talk about what this error&hellip;","protected":false},"author":240,"featured_media":18401,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[16578],"tags":[],"class_list":{"0":"post-21622","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: \u2018NoneType\u2019 object is not subscriptable | Career Karma<\/title>\n<meta name=\"description\" content=\"On Career Karma, learn about the Python TypeError: \u2018NoneType\u2019 object is not subscriptable 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-nonetype-object-is-not-subscriptable\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python TypeError: \u2018NoneType\u2019 object is not subscriptable Solution\" \/>\n<meta property=\"og:description\" content=\"On Career Karma, learn about the Python TypeError: \u2018NoneType\u2019 object is not subscriptable error, how the error works, and how to solve the error.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/python-typeerror-nonetype-object-is-not-subscriptable\/\" \/>\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-25T23:25:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T11:58:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/christopher-gower-m_HRfLhgABo-unsplash.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1020\" \/>\n\t<meta property=\"og:image:height\" content=\"679\" \/>\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-nonetype-object-is-not-subscriptable\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-nonetype-object-is-not-subscriptable\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"Python TypeError: \u2018NoneType\u2019 object is not subscriptable Solution\",\"datePublished\":\"2020-08-25T23:25:08+00:00\",\"dateModified\":\"2023-12-01T11:58:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-nonetype-object-is-not-subscriptable\/\"},\"wordCount\":601,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-nonetype-object-is-not-subscriptable\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/christopher-gower-m_HRfLhgABo-unsplash.jpg\",\"articleSection\":[\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/careerkarma.com\/blog\/python-typeerror-nonetype-object-is-not-subscriptable\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-nonetype-object-is-not-subscriptable\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-nonetype-object-is-not-subscriptable\/\",\"name\":\"Python TypeError: \u2018NoneType\u2019 object is not subscriptable | Career Karma\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-nonetype-object-is-not-subscriptable\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-nonetype-object-is-not-subscriptable\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/christopher-gower-m_HRfLhgABo-unsplash.jpg\",\"datePublished\":\"2020-08-25T23:25:08+00:00\",\"dateModified\":\"2023-12-01T11:58:50+00:00\",\"author\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"On Career Karma, learn about the Python TypeError: \u2018NoneType\u2019 object is not subscriptable error, how the error works, and how to solve the error.\",\"breadcrumb\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-nonetype-object-is-not-subscriptable\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/careerkarma.com\/blog\/python-typeerror-nonetype-object-is-not-subscriptable\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-nonetype-object-is-not-subscriptable\/#primaryimage\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/christopher-gower-m_HRfLhgABo-unsplash.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/christopher-gower-m_HRfLhgABo-unsplash.jpg\",\"width\":1020,\"height\":679,\"caption\":\"A computer screen showing lines of code\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-nonetype-object-is-not-subscriptable\/#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: \u2018NoneType\u2019 object is not subscriptable 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: \u2018NoneType\u2019 object is not subscriptable | Career Karma","description":"On Career Karma, learn about the Python TypeError: \u2018NoneType\u2019 object is not subscriptable 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-nonetype-object-is-not-subscriptable\/","og_locale":"en_US","og_type":"article","og_title":"Python TypeError: \u2018NoneType\u2019 object is not subscriptable Solution","og_description":"On Career Karma, learn about the Python TypeError: \u2018NoneType\u2019 object is not subscriptable error, how the error works, and how to solve the error.","og_url":"https:\/\/careerkarma.com\/blog\/python-typeerror-nonetype-object-is-not-subscriptable\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-08-25T23:25:08+00:00","article_modified_time":"2023-12-01T11:58:50+00:00","og_image":[{"width":1020,"height":679,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/christopher-gower-m_HRfLhgABo-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-nonetype-object-is-not-subscriptable\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-nonetype-object-is-not-subscriptable\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"Python TypeError: \u2018NoneType\u2019 object is not subscriptable Solution","datePublished":"2020-08-25T23:25:08+00:00","dateModified":"2023-12-01T11:58:50+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-nonetype-object-is-not-subscriptable\/"},"wordCount":601,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-nonetype-object-is-not-subscriptable\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/christopher-gower-m_HRfLhgABo-unsplash.jpg","articleSection":["Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/python-typeerror-nonetype-object-is-not-subscriptable\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-nonetype-object-is-not-subscriptable\/","url":"https:\/\/careerkarma.com\/blog\/python-typeerror-nonetype-object-is-not-subscriptable\/","name":"Python TypeError: \u2018NoneType\u2019 object is not subscriptable | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-nonetype-object-is-not-subscriptable\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-nonetype-object-is-not-subscriptable\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/christopher-gower-m_HRfLhgABo-unsplash.jpg","datePublished":"2020-08-25T23:25:08+00:00","dateModified":"2023-12-01T11:58:50+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"On Career Karma, learn about the Python TypeError: \u2018NoneType\u2019 object is not subscriptable error, how the error works, and how to solve the error.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-nonetype-object-is-not-subscriptable\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/python-typeerror-nonetype-object-is-not-subscriptable\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-nonetype-object-is-not-subscriptable\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/christopher-gower-m_HRfLhgABo-unsplash.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/christopher-gower-m_HRfLhgABo-unsplash.jpg","width":1020,"height":679,"caption":"A computer screen showing lines of code"},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-nonetype-object-is-not-subscriptable\/#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: \u2018NoneType\u2019 object is not subscriptable 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\/21622","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=21622"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/21622\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/18401"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=21622"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=21622"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=21622"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}