{"id":21908,"date":"2020-08-31T10:17:45","date_gmt":"2020-08-31T17:17:45","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=21908"},"modified":"2023-12-01T03:58:55","modified_gmt":"2023-12-01T11:58:55","slug":"python-typeerror-method-object-is-not-subscriptable","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/python-typeerror-method-object-is-not-subscriptable\/","title":{"rendered":"Python TypeError: \u2018method\u2019 object is not subscriptable Solution"},"content":{"rendered":"\n<p><a href=\"https:\/\/careerkarma.com\/blog\/python-args-kwargs\/\">Arguments in Python<\/a> methods must be specified within parentheses. This is because functions and methods both use parentheses to tell if they are being called. If you use square brackets to call a method, you\u2019ll encounter an \u201cTypeError: \u2018method\u2019 object is not subscriptable\u201d error.<br><\/p>\n\n\n\n<p>In this guide, we discuss what this error means and why you may encounter it. We walk through an example of this error to help you develop a solution.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">TypeError: \u2018method\u2019 object is not subscriptable<\/h2>\n\n\n\n<p><a href=\"https:\/\/careerkarma.com\/blog\/python-typeerror-function-object-is-not-subscriptable\/\">Subscriptable objects<\/a> are objects with a __getitem__ method. These are data types such as lists, dictionaries, and tuples. The __getitem__ method allows the Python interpreter to retrieve an individual item from a collection.<br><\/p>\n\n\n\n<p>Not all objects are subscriptable. Methods, for instance, are not. This is because they do not implement the __getitem__ method. This means you cannot use square bracket syntax to access the items in a method or to call a method.<br><\/p>\n\n\n\n<p>Consider the following code snippet:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>cheeses = [&quot;Edam&quot;, &quot;Stilton&quot;, &quot;English Cheddar&quot;, &quot;Parmesan&quot;]\nprint(cheeses[0])<\/pre><\/div>\n\n\n\n<p>This code returns \u201cEdam\u201d, the cheese at the index position 0. We cannot use square brackets to call a function or a method because functions and methods are not subscriptable objects.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">An Example Scenario<\/h2>\n\n\n\n<p>Here, we build a program that stores cheeses in objects. The \u201cCheese\u201d class that we use to define a cheese will have a method that lets us check whether a cheese is from a particular country of origin.<br><\/p>\n\n\n\n<p>Start by <a href=\"https:\/\/careerkarma.com\/blog\/python-class\/\">defining a class<\/a> for our cheeses. We call this class Cheese:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>class Cheese:\n\tdef __init__(self, name, origin):\n\t\tself.name = name\n\t\tself.origin = origin\n\n\tdef get_country(self, to_compare):\n\t\tif to_compare == self.origin:\n\t\t\tprint(&quot;{} is from {}.&quot;.format(self.name, self.origin))\n\t\telse:\n\t\t\tprint(&quot;{} is not from {}. It is from {}.&quot;.format(self.name, to_compare, self.origin))<\/pre><\/div>\n\n\n\n<p>Our class contains two methods. The first method defines the structure of the Cheese object. The second lets us check whether the country of origin of a cheese is equal to a particular value.&nbsp;<br><\/p>\n\n\n\n<p>Next, we create an object from our Cheese class:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>edam = Cheese(&quot;Edam&quot;, &quot;Netherlands&quot;)<\/pre><\/div>\n\n\n\n<p>The variable \u201cedam\u201d is an object. The name associated with the cheese is Edam and its country of origin is the Netherlands.<br><\/p>\n\n\n\n<p>Next, let\u2019s call our <code>get_country()<\/code> method:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>edam.get_country[&quot;Germany&quot;]<\/pre><\/div>\n\n\n\n<p>This code executes the <code>get_country()<\/code> method from the Cheese class. The <code>get_country()<\/code> method checks whether the value of \u201corigin\u201d in our \u201cedam\u201d object is equal to \u201cGermany\u201d.<br><\/p>\n\n\n\n<p>Run our 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 14, in &lt;module&gt;\n\tedam.get_country[&quot;Germany&quot;]\nTypeError: 'method' object is not subscriptable<\/pre><\/div>\n\n\n\n<p>An error occurs in our code.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The Solution<\/h2>\n\n\n\n<p>Let\u2019s analyze the line of code that the Python debugger has identified as erroneous:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>edam.get_country[&quot;Germany&quot;]<\/pre><\/div>\n\n\n\n<p>In this line of code, we use square brackets to call the <code>get_country()<\/code> method. This is not acceptable syntax because square brackets are used to access items from a list. Because <a href=\"https:\/\/careerkarma.com\/blog\/python-functions\/\">functions<\/a> and objects are not subscriptable, we cannot use square brackets to call them.<br><\/p>\n\n\n\n<p>To solve this error, we must replace the square brackets with curly brackets:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>edam.get_country(&quot;Germany&quot;)<\/pre><\/div>\n\n\n\n<p>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>Edam is not from Germany. It is from Netherlands.<\/pre><\/div>\n\n\n\n<p>Our code successfully executes. Let\u2019s try to check whether Edam is from \u201cNetherlands\u201d to make sure our function works in all cases, whether or not the value we specify is equal to the cheese\u2019s origin country:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>edam.get_country(&quot;Netherlands&quot;)<\/pre><\/div>\n\n\n\n<p>Our code returns:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>Edam is from Netherlands.<\/pre><\/div>\n\n\n\n<p>Our code works if the value we specify is equal to the country of origin of a cheese.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The \u201cTypeError: \u2018method\u2019 object is not subscriptable\u201d error is raised when you use square brackets to call a method inside a class. To solve this error, make sure that you only call methods of a class using curly brackets after the name of the method you want to call.<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\/what-python-is-used-for\/\">professional coder<\/a>!<\/p>\n","protected":false},"excerpt":{"rendered":"Arguments in Python methods must be specified within parentheses. This is because functions and methods both use parentheses to tell if they are being called. If you use square brackets to call a method, you\u2019ll encounter an \u201cTypeError: \u2018method\u2019 object is not subscriptable\u201d error. In this guide, we discuss what this error means and why&hellip;","protected":false},"author":240,"featured_media":21909,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[16578],"tags":[],"class_list":{"0":"post-21908","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.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Python TypeError: \u2018method\u2019 object is not subscriptable | Career Karma<\/title>\n<meta name=\"description\" content=\"The Python TypeError: \u2018method\u2019 object is not subscriptable error is raised when you try to access a method object 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-method-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: \u2018method\u2019 object is not subscriptable Solution\" \/>\n<meta property=\"og:description\" content=\"The Python TypeError: \u2018method\u2019 object is not subscriptable error is raised when you try to access a method object 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-method-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-31T17:17:45+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T11:58:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/james-mckinven-B3FwR-Hf9w8-unsplash.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1020\" \/>\n\t<meta property=\"og:image:height\" content=\"663\" \/>\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-method-object-is-not-subscriptable\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-typeerror-method-object-is-not-subscriptable\\\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"Python TypeError: \u2018method\u2019 object is not subscriptable Solution\",\"datePublished\":\"2020-08-31T17:17:45+00:00\",\"dateModified\":\"2023-12-01T11:58:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-typeerror-method-object-is-not-subscriptable\\\/\"},\"wordCount\":566,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-typeerror-method-object-is-not-subscriptable\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/08\\\/james-mckinven-B3FwR-Hf9w8-unsplash.jpg\",\"articleSection\":[\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-typeerror-method-object-is-not-subscriptable\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-typeerror-method-object-is-not-subscriptable\\\/\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-typeerror-method-object-is-not-subscriptable\\\/\",\"name\":\"Python TypeError: \u2018method\u2019 object is not subscriptable | Career Karma\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-typeerror-method-object-is-not-subscriptable\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-typeerror-method-object-is-not-subscriptable\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/08\\\/james-mckinven-B3FwR-Hf9w8-unsplash.jpg\",\"datePublished\":\"2020-08-31T17:17:45+00:00\",\"dateModified\":\"2023-12-01T11:58:55+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"The Python TypeError: \u2018method\u2019 object is not subscriptable error is raised when you try to access a method object using a string index value. On Career Karma, learn how to fix this error.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-typeerror-method-object-is-not-subscriptable\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-typeerror-method-object-is-not-subscriptable\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-typeerror-method-object-is-not-subscriptable\\\/#primaryimage\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/08\\\/james-mckinven-B3FwR-Hf9w8-unsplash.jpg\",\"contentUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/08\\\/james-mckinven-B3FwR-Hf9w8-unsplash.jpg\",\"width\":1020,\"height\":663},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-typeerror-method-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: \u2018method\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\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/james-gallagher-150x150.jpg\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/james-gallagher-150x150.jpg\",\"contentUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/james-gallagher-150x150.jpg\",\"caption\":\"James Gallagher\"},\"description\":\"James Gallagher is a self-taught programmer and the technical content manager at Career Karma. He has experience in range of programming languages and extensive expertise in Python, HTML, CSS, and JavaScript. James has written hundreds of programming tutorials, and he frequently contributes to publications like Codecademy, Treehouse, Repl.it, Afrotech, and others.\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/author\\\/jamesgallagher\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Python TypeError: \u2018method\u2019 object is not subscriptable | Career Karma","description":"The Python TypeError: \u2018method\u2019 object is not subscriptable error is raised when you try to access a method object 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-method-object-is-not-subscriptable\/","og_locale":"en_US","og_type":"article","og_title":"Python TypeError: \u2018method\u2019 object is not subscriptable Solution","og_description":"The Python TypeError: \u2018method\u2019 object is not subscriptable error is raised when you try to access a method object using a string index value. On Career Karma, learn how to fix this error.","og_url":"https:\/\/careerkarma.com\/blog\/python-typeerror-method-object-is-not-subscriptable\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-08-31T17:17:45+00:00","article_modified_time":"2023-12-01T11:58:55+00:00","og_image":[{"width":1020,"height":663,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/james-mckinven-B3FwR-Hf9w8-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-method-object-is-not-subscriptable\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-method-object-is-not-subscriptable\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"Python TypeError: \u2018method\u2019 object is not subscriptable Solution","datePublished":"2020-08-31T17:17:45+00:00","dateModified":"2023-12-01T11:58:55+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-method-object-is-not-subscriptable\/"},"wordCount":566,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-method-object-is-not-subscriptable\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/james-mckinven-B3FwR-Hf9w8-unsplash.jpg","articleSection":["Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/python-typeerror-method-object-is-not-subscriptable\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-method-object-is-not-subscriptable\/","url":"https:\/\/careerkarma.com\/blog\/python-typeerror-method-object-is-not-subscriptable\/","name":"Python TypeError: \u2018method\u2019 object is not subscriptable | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-method-object-is-not-subscriptable\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-method-object-is-not-subscriptable\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/james-mckinven-B3FwR-Hf9w8-unsplash.jpg","datePublished":"2020-08-31T17:17:45+00:00","dateModified":"2023-12-01T11:58:55+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"The Python TypeError: \u2018method\u2019 object is not subscriptable error is raised when you try to access a method object using a string index value. On Career Karma, learn how to fix this error.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-method-object-is-not-subscriptable\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/python-typeerror-method-object-is-not-subscriptable\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-method-object-is-not-subscriptable\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/james-mckinven-B3FwR-Hf9w8-unsplash.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/james-mckinven-B3FwR-Hf9w8-unsplash.jpg","width":1020,"height":663},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-method-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: \u2018method\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\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","caption":"James Gallagher"},"description":"James Gallagher is a self-taught programmer and the technical content manager at Career Karma. He has experience in range of programming languages and extensive expertise in Python, HTML, CSS, and JavaScript. James has written hundreds of programming tutorials, and he frequently contributes to publications like Codecademy, Treehouse, Repl.it, Afrotech, and others.","url":"https:\/\/careerkarma.com\/blog\/author\/jamesgallagher\/"}]}},"_links":{"self":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/21908","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=21908"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/21908\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/21909"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=21908"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=21908"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=21908"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}