{"id":22305,"date":"2020-09-07T12:07:15","date_gmt":"2020-09-07T19:07:15","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=22305"},"modified":"2023-12-01T03:59:27","modified_gmt":"2023-12-01T11:59:27","slug":"python-typeerror-type-object-is-not-subscriptable","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/python-typeerror-type-object-is-not-subscriptable\/","title":{"rendered":"Python TypeError: \u2018type\u2019 object is not subscriptable Solution"},"content":{"rendered":"\n<p>\u201ctype\u201d is a special keyword in Python that denotes a value whose type is a data type. If you try to access a value from an object whose data type is \u201ctype\u201d, you\u2019ll encounter the \u201cTypeError: \u2018type\u2019 object is not subscriptable\u201d error.<br><\/p>\n\n\n\n<p>This guide discusses what this error means and why you may see it. It walks you through an example of this error so you can learn how to fix the error whenever it comes up.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">TypeError: \u2018type\u2019 object is not subscriptable<\/h2>\n\n\n\n<p><a href=\"https:\/\/careerkarma.com\/blog\/python-data-types\/\">Python supports a range of data types<\/a>. These data types are used to store values with different attributes. The integer data type, for instance, stores whole numbers. The string data type represents an individual or set of characters.<br><\/p>\n\n\n\n<p>Each data type has a \u201ctype\u201d object. This object lets you convert values to a particular data type, or create a new value with a particular data type. These \u201ctype\u201d objects include:<br><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/careerkarma.com\/blog\/python-string-to-int\/\">int()<\/a><\/li><li>str()<\/li><li><a href=\"https:\/\/careerkarma.com\/blog\/python-tuples\/\">tuple()<\/a><\/li><li>dict()<\/li><\/ul>\n\n\n\n<p>If you check the \u201ctype\u201d of these variables, you\u2019ll see they are \u201ctype\u201d objects:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>print(type(int))<\/pre><\/div>\n\n\n\n<p>The result of this code is: \u201ctype\u201d.<br><\/p>\n\n\n\n<p>We cannot access values from a \u201ctype\u201d object because they do not store any values. They are a reference for a particular type of data.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">An Example Scenario<\/h2>\n\n\n\n<p>Build a program that displays information about a purchase made at a computer hardware store so that a receipt can be printed out. Start by <a href=\"https:\/\/careerkarma.com\/blog\/python-array\/\">defining a list with information about a purchase<\/a>:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>purchase = type([&quot;Steelseries&quot;, &quot;Rival 600 Gaming Mouse&quot;, 69.99, True])<\/pre><\/div>\n\n\n\n<p>The values in this list represent, in order:<br><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>The brand of the item a customer has purchased<\/li><li>The name of the item<\/li><li>The price of the item<\/li><li>Whether the customer is a member of the store\u2019s loyalty card program<\/li><\/ul>\n\n\n\n<p>Next, use <a href=\"https:\/\/careerkarma.com\/blog\/python-print-without-new-line\/\">print() statements<\/a> to display information about this purchase to the console:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>print(&quot;Brand: &quot; + purchase[0])\nprint(&quot;Product Name: &quot; + purchase[1])\nprint(&quot;Price: $&quot; + str(purchase[2]))<\/pre><\/div>\n\n\n\n<p>You print the brand, product name, and price values to the console. You have added labels to these values so that it is easy for the user to tell what each value represents.<br><\/p>\n\n\n\n<p>Convert purchase[2] to a string using <code>str()<\/code> because this value is stored as a floating point number and you can only concatenate strings to other strings.<br><\/p>\n\n\n\n<p>Next, check to see if a user is a member of the store\u2019s loyalty card program. You do this because if a customer is not a member then they should be asked if they would like to join the loyalty card program:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>if purchase[3] == False:\n\t    print(&quot;Would you like to join our loyalty card program?&quot;)\nelse:\n\t    print(&quot;Thanks for being a member of our loyalty card program. You have earned 10 points for making a purchase at our store.&quot;)<\/pre><\/div>\n\n\n\n<p>If a user is not a member of the loyalty card program, the <a href=\"https:\/\/careerkarma.com\/blog\/python-if-else\/\">&#8220;if&#8221; statement<\/a> runs. Otherwise, the <code>else<\/code> statement runs and the user is thanked for making a purchase.<br><\/p>\n\n\n\n<p>Run our code and see if it works:<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 3, in &lt;module&gt;\n\t     print(&quot;Brand: &quot; + purchase[0])\nTypeError: 'type' 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>Take a look at the offending line of code:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>print(&quot;Brand: &quot; + purchase[0])<\/pre><\/div>\n\n\n\n<p>The \u201csubscriptable\u201d message says you are trying to access a value using indexing from an object as if it were a sequence object, like a string, a list, or a tuple. In the code, you\u2019re trying to access a value using indexing from a \u201ctype\u201d object. This is not allowed.<br><\/p>\n\n\n\n<p>This error has occurred because you\u2019ve defined the \u201cpurchase\u201d list as a type object instead of as a list. To solve this error, remove the \u201ctype\u201d from around our list:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>purchase = [&quot;Steelseries&quot;, &quot;Rival 600 Gaming Mouse&quot;, 69.99, True]<\/pre><\/div>\n\n\n\n<p>There is no need to use \u201ctype\u201d to declare a list. You only need to use \u201ctype\u201d to check the value of an object. Run our code and see what happens:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>Brand: Steelseries\nProduct Name: Rival 600 Gaming Mouse\nPrice: $69.99\nThanks for being a member of our loyalty card program. You have earned 10 points for making a purchase at our store.<\/pre><\/div>\n\n\n\n<p>The code prints out the information about the purchase. It also informs that the customer is a loyalty card member and so they have earned points for making a purchase at the store.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The \u201cTypeError: \u2018type\u2019 object is not subscriptable\u201d error is raised when you try to access an object using indexing whose data type is \u201ctype\u201d. To solve this error, ensure you only try to access iterable objects, like tuples and strings, using indexing.<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":"\u201ctype\u201d is a special keyword in Python that denotes a value whose type is a data type. If you try to access a value from an object whose data type is \u201ctype\u201d, you\u2019ll encounter the \u201cTypeError: \u2018type\u2019 object is not subscriptable\u201d error. This guide discusses what this error means and why you may see it.&hellip;","protected":false},"author":240,"featured_media":14518,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[16578],"tags":[],"class_list":{"0":"post-22305","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: \u2018type\u2019 object is not subscriptable | Career Karma<\/title>\n<meta name=\"description\" content=\"On Career Karma, learn the cause of and the solution to the common TypeError: \u2018type\u2019 object is not subscriptable Python 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-type-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: \u2018type\u2019 object is not subscriptable Solution\" \/>\n<meta property=\"og:description\" content=\"On Career Karma, learn the cause of and the solution to the common TypeError: \u2018type\u2019 object is not subscriptable Python error.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/python-typeerror-type-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-09-07T19:07:15+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T11:59:27+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/04\/simon-abrams-k_T9Zj3SE8k-unsplash.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1000\" \/>\n\t<meta property=\"og:image:height\" content=\"667\" \/>\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-type-object-is-not-subscriptable\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-typeerror-type-object-is-not-subscriptable\\\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"Python TypeError: \u2018type\u2019 object is not subscriptable Solution\",\"datePublished\":\"2020-09-07T19:07:15+00:00\",\"dateModified\":\"2023-12-01T11:59:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-typeerror-type-object-is-not-subscriptable\\\/\"},\"wordCount\":657,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-typeerror-type-object-is-not-subscriptable\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/simon-abrams-k_T9Zj3SE8k-unsplash.jpg\",\"articleSection\":[\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-typeerror-type-object-is-not-subscriptable\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-typeerror-type-object-is-not-subscriptable\\\/\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-typeerror-type-object-is-not-subscriptable\\\/\",\"name\":\"Python TypeError: \u2018type\u2019 object is not subscriptable | Career Karma\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-typeerror-type-object-is-not-subscriptable\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-typeerror-type-object-is-not-subscriptable\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/simon-abrams-k_T9Zj3SE8k-unsplash.jpg\",\"datePublished\":\"2020-09-07T19:07:15+00:00\",\"dateModified\":\"2023-12-01T11:59:27+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"On Career Karma, learn the cause of and the solution to the common TypeError: \u2018type\u2019 object is not subscriptable Python error.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-typeerror-type-object-is-not-subscriptable\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-typeerror-type-object-is-not-subscriptable\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-typeerror-type-object-is-not-subscriptable\\\/#primaryimage\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/simon-abrams-k_T9Zj3SE8k-unsplash.jpg\",\"contentUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/simon-abrams-k_T9Zj3SE8k-unsplash.jpg\",\"width\":1000,\"height\":667},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-typeerror-type-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: \u2018type\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: \u2018type\u2019 object is not subscriptable | Career Karma","description":"On Career Karma, learn the cause of and the solution to the common TypeError: \u2018type\u2019 object is not subscriptable Python 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-type-object-is-not-subscriptable\/","og_locale":"en_US","og_type":"article","og_title":"Python TypeError: \u2018type\u2019 object is not subscriptable Solution","og_description":"On Career Karma, learn the cause of and the solution to the common TypeError: \u2018type\u2019 object is not subscriptable Python error.","og_url":"https:\/\/careerkarma.com\/blog\/python-typeerror-type-object-is-not-subscriptable\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-09-07T19:07:15+00:00","article_modified_time":"2023-12-01T11:59:27+00:00","og_image":[{"width":1000,"height":667,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/04\/simon-abrams-k_T9Zj3SE8k-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-type-object-is-not-subscriptable\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-type-object-is-not-subscriptable\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"Python TypeError: \u2018type\u2019 object is not subscriptable Solution","datePublished":"2020-09-07T19:07:15+00:00","dateModified":"2023-12-01T11:59:27+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-type-object-is-not-subscriptable\/"},"wordCount":657,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-type-object-is-not-subscriptable\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/04\/simon-abrams-k_T9Zj3SE8k-unsplash.jpg","articleSection":["Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/python-typeerror-type-object-is-not-subscriptable\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-type-object-is-not-subscriptable\/","url":"https:\/\/careerkarma.com\/blog\/python-typeerror-type-object-is-not-subscriptable\/","name":"Python TypeError: \u2018type\u2019 object is not subscriptable | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-type-object-is-not-subscriptable\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-type-object-is-not-subscriptable\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/04\/simon-abrams-k_T9Zj3SE8k-unsplash.jpg","datePublished":"2020-09-07T19:07:15+00:00","dateModified":"2023-12-01T11:59:27+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"On Career Karma, learn the cause of and the solution to the common TypeError: \u2018type\u2019 object is not subscriptable Python error.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-type-object-is-not-subscriptable\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/python-typeerror-type-object-is-not-subscriptable\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-type-object-is-not-subscriptable\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/04\/simon-abrams-k_T9Zj3SE8k-unsplash.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/04\/simon-abrams-k_T9Zj3SE8k-unsplash.jpg","width":1000,"height":667},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-type-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: \u2018type\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\/22305","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=22305"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/22305\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/14518"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=22305"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=22305"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=22305"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}