{"id":21940,"date":"2020-08-31T14:16:28","date_gmt":"2020-08-31T21:16:28","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=21940"},"modified":"2023-12-01T03:59:22","modified_gmt":"2023-12-01T11:59:22","slug":"python-typeerror-cannot-unpack-non-iterable-nonetype-object","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/python-typeerror-cannot-unpack-non-iterable-nonetype-object\/","title":{"rendered":"Python TypeError: cannot unpack non-iterable NoneType object Solution"},"content":{"rendered":"\n<p>Python sequences can be unpacked. This means you can assign the contents of a sequence to multiple variables. If you try to unpack a None value using this syntax, you\u2019ll encounter the \u201cTypeError: cannot unpack non-iterable NoneType object\u201d error.<br><\/p>\n\n\n\n<p>In this guide, we break down what this error means and why you may see it. We discuss an example of this error in action so you can figure out how to solve it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">TypeError: cannot unpack non-iterable NoneType object<\/h2>\n\n\n\n<p><a href=\"https:\/\/careerkarma.com\/blog\/python-valueerror-too-many-values-to-unpack-expected-2\/\">Unpacking syntax<\/a> lets you assign multiple variables at the same time based on the contents of a sequence. Consider the following code:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>fruit_sales = [230, 310, 219]\navocado, bananas, apples = fruit_sales<\/pre><\/div>\n\n\n\n<p>This code lets us assign the values in the fruit_sales variable to three separate <a href=\"https:\/\/careerkarma.com\/blog\/python-variables\/\">variables<\/a>. The value of \u201cavocado\u201d becomes 230, the value of \u201cbananas\u201d becomes 310, and the value of \u201capples\u201d becomes 219.<br><\/p>\n\n\n\n<p>The unpacking syntax only works on sequences, like lists and tuples. You cannot unpack a None value because None values are not sequences.<br><\/p>\n\n\n\n<p>This error is commonly raised if you try to unpack the result of a <a href=\"https:\/\/careerkarma.com\/blog\/python-functions\/\">function<\/a> that does not include a return statement.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">An Example Scenario<\/h2>\n\n\n\n<p>We\u2019re going to create a program that calculates the average purchase price at a coffee shop and the largest purchase made on a given day.<br><\/p>\n\n\n\n<p>Start by defining a list of purchases made on a particular day:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>purchases = [2.30, 3.90, 4.60, 7.80, 2.20, 2.40, 8.30]<\/pre><\/div>\n\n\n\n<p>Next, define a function. This function will calculate the average purchase price and the largest purchase made on a given day:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>def calculate_statistics(purchases):\n\t    average_purchase = sum(purchases) \/ len(purchases)\n\t    largest_purchase = max(purchases)<\/pre><\/div>\n\n\n\n<p>To calculate the average value of a purchase, divide the total value of all purchases by how many purchases are made on a given day. We use the <a href=\"https:\/\/careerkarma.com\/blog\/python-min-and-max\/\">max() function<\/a> to find the largest purchase.<br><\/p>\n\n\n\n<p>Now that we\u2019ve defined our function, we can call it. We assign the values our function returns to variables:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>average, largest = calculate_statistics(purchases)<\/pre><\/div>\n\n\n\n<p>We use the unpacking syntax to access these two values from our function.<br><\/p>\n\n\n\n<p>This code lets us access the values our function returns in our main program. Now that we have access to these values outside our function, we print them to the console:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>print(&quot;The average purchase was ${}.&quot;.format(round(average, 2)))\nprint(&quot;The largest purchase was ${}.&quot;.format(round(largest, 2)))<\/pre><\/div>\n\n\n\n<p>Our code will show us the average purchase value and the value of the largest purchase on the console. We round both of these values to two decimal places using the <a href=\"https:\/\/careerkarma.com\/blog\/python-round\/\">round() method<\/a>. Let\u2019s run our program 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 7, in &lt;module&gt;\n\taverage, largest = calculate_statistics(purchases)\nTypeError: cannot unpack non-iterable NoneType object<\/pre><\/div>\n\n\n\n<p>Our code returns an error message.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The Solution<\/h2>\n\n\n\n<p>The error occurs on the line where we try to unpack the values from our function.<br><\/p>\n\n\n\n<p>Our error message tells us we\u2019re trying to unpack values from a None value. This tells us our function is not returning the correct values.<br><\/p>\n\n\n\n<p>If we take a look at our function, we see we\u2019ve forgotten a <a href=\"https:\/\/careerkarma.com\/blog\/python-return\/\">return statement<\/a>. This means our code cannot unpack any values.<br><\/p>\n\n\n\n<p>To solve this error, we must return the \u201caverage_purchase\u201d and \u201clargest_purchase\u201d values in our function so we can unpack them in our main program:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>def calculate_statistics(purchases):\n\t    average_purchase = sum(purchases) \/ len(purchases)\n\t    largest_purchase = max(purchases)\n\n\t    return average_purchase, largest_purchase<\/pre><\/div>\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 average purchase was $4.5.\nThe largest purchase was $8.3.<\/pre><\/div>\n\n\n\n<p>Our code tells us the average purchase was $4.50 and the largest purchase was $8.30.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The \u201cTypeError: cannot unpack non-iterable NoneType object\u201d error is raised when you try to unpack values from one that is equal to None.<br><\/p>\n\n\n\n<p>A common cause of this error is when you try to unpack values from a function that does not return a value. To solve this error, make sure the value you are trying to unpack is a sequence, such as a list or a tuple.<br><\/p>\n\n\n\n<p>You\u2019re now ready to solve this error like a professional!<\/p>\n","protected":false},"excerpt":{"rendered":"Python sequences can be unpacked. This means you can assign the contents of a sequence to multiple variables. If you try to unpack a None value using this syntax, you\u2019ll encounter the \u201cTypeError: cannot unpack non-iterable NoneType object\u201d error. In this guide, we break down what this error means and why you may see it.&hellip;","protected":false},"author":240,"featured_media":21943,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[16578],"tags":[],"class_list":{"0":"post-21940","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: cannot unpack non-iterable NoneType object | Career Karma<\/title>\n<meta name=\"description\" content=\"The Python TypeError: cannot unpack non-iterable NoneType object error is raised when you try to unpack a None 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-cannot-unpack-non-iterable-nonetype-object\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python TypeError: cannot unpack non-iterable NoneType object Solution\" \/>\n<meta property=\"og:description\" content=\"The Python TypeError: cannot unpack non-iterable NoneType object error is raised when you try to unpack a None value. On Career Karma, learn how to fix this error.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/python-typeerror-cannot-unpack-non-iterable-nonetype-object\/\" \/>\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-31T21:16:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T11:59:22+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/parker-byrd-gxD8hCmi0IQ-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=\"3 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-cannot-unpack-non-iterable-nonetype-object\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-cannot-unpack-non-iterable-nonetype-object\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"Python TypeError: cannot unpack non-iterable NoneType object Solution\",\"datePublished\":\"2020-08-31T21:16:28+00:00\",\"dateModified\":\"2023-12-01T11:59:22+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-cannot-unpack-non-iterable-nonetype-object\/\"},\"wordCount\":588,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-cannot-unpack-non-iterable-nonetype-object\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/parker-byrd-gxD8hCmi0IQ-unsplash.jpg\",\"articleSection\":[\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/careerkarma.com\/blog\/python-typeerror-cannot-unpack-non-iterable-nonetype-object\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-cannot-unpack-non-iterable-nonetype-object\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-cannot-unpack-non-iterable-nonetype-object\/\",\"name\":\"TypeError: cannot unpack non-iterable NoneType object | Career Karma\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-cannot-unpack-non-iterable-nonetype-object\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-cannot-unpack-non-iterable-nonetype-object\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/parker-byrd-gxD8hCmi0IQ-unsplash.jpg\",\"datePublished\":\"2020-08-31T21:16:28+00:00\",\"dateModified\":\"2023-12-01T11:59:22+00:00\",\"author\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"The Python TypeError: cannot unpack non-iterable NoneType object error is raised when you try to unpack a None value. On Career Karma, learn how to fix this error.\",\"breadcrumb\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-cannot-unpack-non-iterable-nonetype-object\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/careerkarma.com\/blog\/python-typeerror-cannot-unpack-non-iterable-nonetype-object\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-cannot-unpack-non-iterable-nonetype-object\/#primaryimage\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/parker-byrd-gxD8hCmi0IQ-unsplash.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/parker-byrd-gxD8hCmi0IQ-unsplash.jpg\",\"width\":1020,\"height\":680},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-cannot-unpack-non-iterable-nonetype-object\/#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: cannot unpack non-iterable NoneType object 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: cannot unpack non-iterable NoneType object | Career Karma","description":"The Python TypeError: cannot unpack non-iterable NoneType object error is raised when you try to unpack a None 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-cannot-unpack-non-iterable-nonetype-object\/","og_locale":"en_US","og_type":"article","og_title":"Python TypeError: cannot unpack non-iterable NoneType object Solution","og_description":"The Python TypeError: cannot unpack non-iterable NoneType object error is raised when you try to unpack a None value. On Career Karma, learn how to fix this error.","og_url":"https:\/\/careerkarma.com\/blog\/python-typeerror-cannot-unpack-non-iterable-nonetype-object\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-08-31T21:16:28+00:00","article_modified_time":"2023-12-01T11:59:22+00:00","og_image":[{"width":1020,"height":680,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/parker-byrd-gxD8hCmi0IQ-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":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-cannot-unpack-non-iterable-nonetype-object\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-cannot-unpack-non-iterable-nonetype-object\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"Python TypeError: cannot unpack non-iterable NoneType object Solution","datePublished":"2020-08-31T21:16:28+00:00","dateModified":"2023-12-01T11:59:22+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-cannot-unpack-non-iterable-nonetype-object\/"},"wordCount":588,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-cannot-unpack-non-iterable-nonetype-object\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/parker-byrd-gxD8hCmi0IQ-unsplash.jpg","articleSection":["Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/python-typeerror-cannot-unpack-non-iterable-nonetype-object\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-cannot-unpack-non-iterable-nonetype-object\/","url":"https:\/\/careerkarma.com\/blog\/python-typeerror-cannot-unpack-non-iterable-nonetype-object\/","name":"TypeError: cannot unpack non-iterable NoneType object | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-cannot-unpack-non-iterable-nonetype-object\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-cannot-unpack-non-iterable-nonetype-object\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/parker-byrd-gxD8hCmi0IQ-unsplash.jpg","datePublished":"2020-08-31T21:16:28+00:00","dateModified":"2023-12-01T11:59:22+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"The Python TypeError: cannot unpack non-iterable NoneType object error is raised when you try to unpack a None value. On Career Karma, learn how to fix this error.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-cannot-unpack-non-iterable-nonetype-object\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/python-typeerror-cannot-unpack-non-iterable-nonetype-object\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-cannot-unpack-non-iterable-nonetype-object\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/parker-byrd-gxD8hCmi0IQ-unsplash.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/parker-byrd-gxD8hCmi0IQ-unsplash.jpg","width":1020,"height":680},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-cannot-unpack-non-iterable-nonetype-object\/#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: cannot unpack non-iterable NoneType object 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\/21940","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=21940"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/21940\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/21943"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=21940"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=21940"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=21940"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}