{"id":21934,"date":"2020-08-31T12:59:55","date_gmt":"2020-08-31T19:59:55","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=21934"},"modified":"2023-12-01T03:59:20","modified_gmt":"2023-12-01T11:59:20","slug":"python-typeerror-tuple-object-does-not-support-item-assignment","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/python-typeerror-tuple-object-does-not-support-item-assignment\/","title":{"rendered":"Python typeerror: \u2018tuple\u2019 object does not support item assignment Solution"},"content":{"rendered":"\n<p><a href=\"https:\/\/careerkarma.com\/blog\/python-tuples\/\">Tuples are immutable objects<\/a>. \u201cImmutable\u201d means you cannot change the values inside a tuple. You can only remove them. If you try to assign a new value to an item in a variable, you\u2019ll encounter the \u201ctypeerror: \u2018tuple\u2019 object does not support item assignment\u201d error.<br><\/p>\n\n\n\n<p>In this guide, we discuss what this error means and why you may experience it. We\u2019ll walk through an example of this error so you can learn how to solve it in your code.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">typeerror: \u2018tuple\u2019 object does not support item assignment<\/h2>\n\n\n\n<p>While tuples and lists both store sequences of data, they have a few distinctions. Whereas you can change the values in a list, the values inside a tuple cannot be changed. Also, tuples are stored within parenthesis whereas lists are declared between square brackets.<br><\/p>\n\n\n\n<p>Because you cannot change values in a tuple, item assignment does not work.<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>honor_roll = [&quot;Bill&quot;, &quot;Jeff&quot;, &quot;Lucy&quot;, &quot;Lindsay&quot;]\nhonor_roll[0] = &quot;Holly&quot;<\/pre><\/div>\n\n\n\n<p>This code snippet lets us change the first value in the <a href=\"https:\/\/careerkarma.com\/blog\/python-array\/\">\u201chonor_roll\u201d list<\/a> to Holly. This works because lists are mutable. You can change their values. The same code does not work with data that is stored in a tuple.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">An Example Scenario<\/h2>\n\n\n\n<p>Let\u2019s build a program that tracks the courses offered by a high school. Students in their senior year are allowed to choose from a class but a few classes are being replaced.<br><\/p>\n\n\n\n<p>Start by creating a collection of class names:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>classes = (&quot;Chemistry&quot;, &quot;Politics&quot;, &quot;Biology&quot;, &quot;Psychology&quot;)<\/pre><\/div>\n\n\n\n<p>We\u2019ve created a tuple that stores the names of each class being offered.<br><\/p>\n\n\n\n<p>The science department has notified the school that psychology is no longer being offered due to a lack of numbers in the class. We\u2019re going to replace psychology with philosophy as the philosophy class has just opened up a few spaces.<br><\/p>\n\n\n\n<p>To do this, we use the assignment operator:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>classes[3] = &quot;Philosophy&quot;<\/pre><\/div>\n\n\n\n<p>This code will replace the value at the index position 3 in our list of classes with \u201cPhilosophy\u201d. Next, we print our list of classes to the console so that the user can see what classes are being actively offered:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>print(&quot;The classes being offered are: &quot;)\nfor c in classes:\n\t     print(c)<\/pre><\/div>\n\n\n\n<p>Use a <a href=\"https:\/\/careerkarma.com\/blog\/python-for-loop\/\">for loop<\/a> to print out each class in our tuple to the console. Let\u2019s run our code and see what happens:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>Traceback (most recent call last):\n  File &quot;main.py&quot;, line 3, in &lt;module&gt;\n\t    classes[3] = &quot;Philosophy&quot;\nTypeError: 'tuple' object does not support item assignment<\/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>We\u2019ve tried to use the assignment operator to change a subject in our list. Tuples are immutable so we cannot change their values. This is why our code returns an error.<br><\/p>\n\n\n\n<p>To solve this problem, we convert our \u201cclasses\u201d tuple into a <a href=\"https:\/\/careerkarma.com\/blog\/how-to-initialize-a-list-in-python\/\">list<\/a>. This will let us change the values in our sequence of class names.<br><\/p>\n\n\n\n<p>Do this using the <code>list()<\/code> method:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>classes = (&quot;Chemistry&quot;, &quot;Politics&quot;, &quot;Biology&quot;, &quot;Psychology&quot;)\nas_list = list(classes)\n\nas_list[3] = &quot;Philosophy&quot;\n\nprint(&quot;The classes being offered are: &quot;)\nfor c in as_list:\n\t     print(c)<\/pre><\/div>\n\n\n\n<p>We use the <code>list()<\/code> method to convert the value of \u201cclasses\u201d to a list. We assign this new list to the variable \u201cas_list\u201d. Now that we have our list of classes stored as a list, we can change existing classes in the list.<br><\/p>\n\n\n\n<p>Let\u2019s run our code:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>The classes being offered are:\nChemistry\nPolitics\nBiology\nPhilosophy<\/pre><\/div>\n\n\n\n<p>Our code successfully changes the \u201cPsychology\u201d class to \u201cPhilosophy\u201d. Our code then prints out the list of classes to the console.<br><\/p>\n\n\n\n<p>If we need to store our data as a tuple, we can always convert our list back to a tuple once we have changed the values we want to change. We can do this using the <code>tuple()<\/code> method:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>as_tuple = tuple(as_list)\nprint(as_tuple)<\/pre><\/div>\n\n\n\n<p>This code converts \u201cas_list\u201d to a tuple and prints the value of our tuple to the console:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>('Chemistry', 'Politics', 'Biology', 'Philosophy')<\/pre><\/div>\n\n\n\n<p>We could use this tuple later in our code if we needed our class names stored as a tuple.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The \u201ctypeerror: \u2018tuple\u2019 object does not support item assignment\u201d error is raised when you try to change a value in a tuple using item assignment.<br><\/p>\n\n\n\n<p>To solve this error, convert a tuple to a list before you change the values in a sequence. Optionally, you can then convert the list back to a tuple.<br><\/p>\n\n\n\n<p>Now you\u2019re ready to fix this error in your code <a href=\"https:\/\/careerkarma.com\/blog\/python-projects-beginners\/\">like a pro<\/a>!<\/p>\n","protected":false},"excerpt":{"rendered":"Tuples are immutable objects. \u201cImmutable\u201d means you cannot change the values inside a tuple. You can only remove them. If you try to assign a new value to an item in a variable, you\u2019ll encounter the \u201ctypeerror: \u2018tuple\u2019 object does not support item assignment\u201d error. In this guide, we discuss what this error means and&hellip;","protected":false},"author":240,"featured_media":20563,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[16578],"tags":[],"class_list":{"0":"post-21934","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: \u2018tuple\u2019 object does not support item assignment | Career Karma<\/title>\n<meta name=\"description\" content=\"On Career Karma, learn about the Python typeerror: \u2018tuple\u2019 object does not support item assignment, 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-tuple-object-does-not-support-item-assignment\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python typeerror: \u2018tuple\u2019 object does not support item assignment Solution\" \/>\n<meta property=\"og:description\" content=\"On Career Karma, learn about the Python typeerror: \u2018tuple\u2019 object does not support item assignment, how the error works, and how to solve the error.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/python-typeerror-tuple-object-does-not-support-item-assignment\/\" \/>\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-31T19:59:55+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T11:59:20+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/caspar-camille-rubin-Hv5vQ8AkbAs-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-tuple-object-does-not-support-item-assignment\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-tuple-object-does-not-support-item-assignment\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"Python typeerror: \u2018tuple\u2019 object does not support item assignment Solution\",\"datePublished\":\"2020-08-31T19:59:55+00:00\",\"dateModified\":\"2023-12-01T11:59:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-tuple-object-does-not-support-item-assignment\/\"},\"wordCount\":654,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-tuple-object-does-not-support-item-assignment\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/caspar-camille-rubin-Hv5vQ8AkbAs-unsplash.jpg\",\"articleSection\":[\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/careerkarma.com\/blog\/python-typeerror-tuple-object-does-not-support-item-assignment\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-tuple-object-does-not-support-item-assignment\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-tuple-object-does-not-support-item-assignment\/\",\"name\":\"TypeError: \u2018tuple\u2019 object does not support item assignment | Career Karma\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-tuple-object-does-not-support-item-assignment\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-tuple-object-does-not-support-item-assignment\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/caspar-camille-rubin-Hv5vQ8AkbAs-unsplash.jpg\",\"datePublished\":\"2020-08-31T19:59:55+00:00\",\"dateModified\":\"2023-12-01T11:59:20+00:00\",\"author\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"On Career Karma, learn about the Python typeerror: \u2018tuple\u2019 object does not support item assignment, how the error works, and how to solve the error.\",\"breadcrumb\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-tuple-object-does-not-support-item-assignment\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/careerkarma.com\/blog\/python-typeerror-tuple-object-does-not-support-item-assignment\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-tuple-object-does-not-support-item-assignment\/#primaryimage\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/caspar-camille-rubin-Hv5vQ8AkbAs-unsplash.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/caspar-camille-rubin-Hv5vQ8AkbAs-unsplash.jpg\",\"width\":1020,\"height\":680},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-tuple-object-does-not-support-item-assignment\/#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: \u2018tuple\u2019 object does not support item assignment 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: \u2018tuple\u2019 object does not support item assignment | Career Karma","description":"On Career Karma, learn about the Python typeerror: \u2018tuple\u2019 object does not support item assignment, 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-tuple-object-does-not-support-item-assignment\/","og_locale":"en_US","og_type":"article","og_title":"Python typeerror: \u2018tuple\u2019 object does not support item assignment Solution","og_description":"On Career Karma, learn about the Python typeerror: \u2018tuple\u2019 object does not support item assignment, how the error works, and how to solve the error.","og_url":"https:\/\/careerkarma.com\/blog\/python-typeerror-tuple-object-does-not-support-item-assignment\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-08-31T19:59:55+00:00","article_modified_time":"2023-12-01T11:59:20+00:00","og_image":[{"width":1020,"height":680,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/caspar-camille-rubin-Hv5vQ8AkbAs-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-tuple-object-does-not-support-item-assignment\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-tuple-object-does-not-support-item-assignment\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"Python typeerror: \u2018tuple\u2019 object does not support item assignment Solution","datePublished":"2020-08-31T19:59:55+00:00","dateModified":"2023-12-01T11:59:20+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-tuple-object-does-not-support-item-assignment\/"},"wordCount":654,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-tuple-object-does-not-support-item-assignment\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/caspar-camille-rubin-Hv5vQ8AkbAs-unsplash.jpg","articleSection":["Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/python-typeerror-tuple-object-does-not-support-item-assignment\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-tuple-object-does-not-support-item-assignment\/","url":"https:\/\/careerkarma.com\/blog\/python-typeerror-tuple-object-does-not-support-item-assignment\/","name":"TypeError: \u2018tuple\u2019 object does not support item assignment | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-tuple-object-does-not-support-item-assignment\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-tuple-object-does-not-support-item-assignment\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/caspar-camille-rubin-Hv5vQ8AkbAs-unsplash.jpg","datePublished":"2020-08-31T19:59:55+00:00","dateModified":"2023-12-01T11:59:20+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"On Career Karma, learn about the Python typeerror: \u2018tuple\u2019 object does not support item assignment, how the error works, and how to solve the error.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-tuple-object-does-not-support-item-assignment\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/python-typeerror-tuple-object-does-not-support-item-assignment\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-tuple-object-does-not-support-item-assignment\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/caspar-camille-rubin-Hv5vQ8AkbAs-unsplash.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/caspar-camille-rubin-Hv5vQ8AkbAs-unsplash.jpg","width":1020,"height":680},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-tuple-object-does-not-support-item-assignment\/#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: \u2018tuple\u2019 object does not support item assignment 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\/21934","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=21934"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/21934\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/20563"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=21934"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=21934"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=21934"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}