{"id":21922,"date":"2020-08-31T11:24:30","date_gmt":"2020-08-31T18:24:30","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=21922"},"modified":"2023-12-01T03:58:59","modified_gmt":"2023-12-01T11:58:59","slug":"python-indentationerror-unexpected-indent","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/python-indentationerror-unexpected-indent\/","title":{"rendered":"Python IndentationError: unexpected indent Solution"},"content":{"rendered":"\n<p>IndentationErrors serve two purposes: they help make your code more readable and ensure the Python interpreter correctly understands your code. If you add in an additional space or tab where one is not needed, you\u2019ll encounter an \u201cIndentationError: unexpected indent\u201d error.<br><\/p>\n\n\n\n<p>In this guide, we discuss what this error means and why it is raised. We\u2019ll walk through an example of this error so you can figure out how you can fix it in your program.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">IndentationError: unexpected indent<\/h2>\n\n\n\n<p>An indent is a specific number of spaces or tabs denoting that a line of code is part of a particular code block. Consider the following program:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>def hello_world():\n\tprint(&quot;Hello, world!&quot;)<\/pre><\/div>\n\n\n\n<p>We have defined a single function: <code>hello_world()<\/code>. This function contains a print statement. To indicate to Python this line of code is part of our function, we have indented it.<br><\/p>\n\n\n\n<p>You can indent code using spaces or tabs, depending on your preference. You should only indent code if that code should be part of another code block. This includes when you write code in:<br><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/careerkarma.com\/blog\/python-if-else\/\">An \u201cif&#8230;else\u201d statement<\/a><\/li><li><a href=\"https:\/\/careerkarma.com\/blog\/python-try-except\/\">A \u201ctry&#8230;except\u201d statement<\/a><\/li><li><a href=\"https:\/\/careerkarma.com\/blog\/python-for-loop\/\">A \u201cfor\u201d loop<\/a><\/li><li><a href=\"https:\/\/careerkarma.com\/blog\/python-functions\/\">A \u201cfunction\u201d statement<\/a><\/li><\/ul>\n\n\n\n<p>Python code must be indented consistently if it appears in a special statement. Python enforces indentation strictly.<br><\/p>\n\n\n\n<p>Some programming languages like JavaScript do not enforce indentation strictly because they use curly braces to denote blocks of code. Python does not have this feature, so the language depends heavily on indentation.<br><\/p>\n\n\n\n<p>The cause of the \u201cIndentationError: unexpected indent\u201d error is indenting your code too far, or using too many tabs and spaces to indent a line of code.<br><\/p>\n\n\n\n<p>The other indentation errors you may encounter are:<br><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/careerkarma.com\/blog\/python-indentationerror\/\">Unindent does not match any other indentation level<\/a><\/li><li>Expected an indented block<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">An Example Scenario<\/h2>\n\n\n\n<p>We\u2019re going to build a program that loops through a list of purchases that a user has made and prints out all of those that are greater than $25.00 to the console.<br><\/p>\n\n\n\n<p>To start, let&#8217;s define a list of purchases:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre> purchases = [25.50, 29.90, 2.40, 57.60, 24.90, 1.55]<\/pre><\/div>\n\n\n\n<p>Next, we define a function to loop through our list of purchases and print the ones worth over $25 to the console:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>def show_high_purchases(purchases):\n\t   for p in purchases:\n\t\t        if p &gt; 25.00:\n\t\t\t            print(&quot;Purchase: &quot;)\n\t\t\t\t                print(p)<\/pre><\/div>\n\n\n\n<p>The <code>show_high_purchases()<\/code> function accepts one argument: the list of purchases through which the function will search. The function iterates through this list and uses an <code>if<\/code> statement to check if each purchase is worth more than $25.00.<br><\/p>\n\n\n\n<p>If a purchase is greater than $25.00, the statement <code>Purchase:<\/code> is printed to the console. Then, the price of that purchase is printed to the console. Otherwise, nothing happens.<br><\/p>\n\n\n\n<p>Before we run our code, call our function and pass our list of purchases as a parameter:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>show_high_purchases(purchases)<\/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>  File &quot;main.py&quot;, line 7\n\tprint(p)\n\t^\nIndentationError: unexpected indent<\/pre><\/div>\n\n\n\n<p>Our code does not run successfully.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The Solution<\/h2>\n\n\n\n<p>As with any Python error, we should read the full error message to see what is going on. The problem appears to be on line 7, which is where we print the value of a purchase.<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>\tif p &gt; 25.00:\n\t\t\tprint(&quot;Purchase: &quot;)\n\t\t\t\t    print(p)<\/pre><\/div>\n\n\n\n<p>We have incidentally indented the second <code>print()<\/code> statement. This causes an error because our second <code>print()<\/code> statement is not part of another block of code. It is still part of our <code>if<\/code> statement.<br><\/p>\n\n\n\n<p>To solve this error, we need to make sure that we consistently indent all our <code>print()<\/code> statements:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>\tif p &gt; 25.00:\n\t\t\tprint(&quot;Purchase: &quot;)\n\t\t\tprint(p)<\/pre><\/div>\n\n\n\n<p>Both <code>print()<\/code> statements should use the same level of indentation because they are part of the same <code>if<\/code> statement. We\u2019ve made this revision above.<br><\/p>\n\n\n\n<p>Let\u2019s try to run our code:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>Purchase:\n25.5\nPurchase:\n29.9\nPurchase:\n57.6<\/pre><\/div>\n\n\n\n<p>Our code successfully prints out all the purchases worth more than $25.00 to the console.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>\u201cIndentationError: unexpected indent\u201d is raised when you indent a line of code too many times. To solve this error, make sure all of your code uses consistent indentation and that there are no unnecessary indents.<br><\/p>\n\n\n\n<p>Now you\u2019re ready to fix this error like a Python expert!<\/p>\n","protected":false},"excerpt":{"rendered":"IndentationErrors serve two purposes: they help make your code more readable and ensure the Python interpreter correctly understands your code. If you add in an additional space or tab where one is not needed, you\u2019ll encounter an \u201cIndentationError: unexpected indent\u201d error. In this guide, we discuss what this error means and why it is raised.&hellip;","protected":false},"author":240,"featured_media":14575,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[16578],"tags":[],"class_list":{"0":"post-21922","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 IndentationError: unexpected indent Solution | Career Karma<\/title>\n<meta name=\"description\" content=\"The Python IndentationError: unexpected indent is raised when you add an additional indent into your code. 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-indentationerror-unexpected-indent\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python IndentationError: unexpected indent Solution\" \/>\n<meta property=\"og:description\" content=\"The Python IndentationError: unexpected indent is raised when you add an additional indent into your code. On Career Karma, learn how to fix this error.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/python-indentationerror-unexpected-indent\/\" \/>\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-31T18:24:30+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T11:58:59+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/04\/arnold-francisca-f77Bh3inUpE-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=\"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-indentationerror-unexpected-indent\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-indentationerror-unexpected-indent\\\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"Python IndentationError: unexpected indent Solution\",\"datePublished\":\"2020-08-31T18:24:30+00:00\",\"dateModified\":\"2023-12-01T11:58:59+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-indentationerror-unexpected-indent\\\/\"},\"wordCount\":620,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-indentationerror-unexpected-indent\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/arnold-francisca-f77Bh3inUpE-unsplash.jpg\",\"articleSection\":[\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-indentationerror-unexpected-indent\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-indentationerror-unexpected-indent\\\/\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-indentationerror-unexpected-indent\\\/\",\"name\":\"Python IndentationError: unexpected indent Solution | Career Karma\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-indentationerror-unexpected-indent\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-indentationerror-unexpected-indent\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/arnold-francisca-f77Bh3inUpE-unsplash.jpg\",\"datePublished\":\"2020-08-31T18:24:30+00:00\",\"dateModified\":\"2023-12-01T11:58:59+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"The Python IndentationError: unexpected indent is raised when you add an additional indent into your code. On Career Karma, learn how to fix this error.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-indentationerror-unexpected-indent\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-indentationerror-unexpected-indent\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-indentationerror-unexpected-indent\\\/#primaryimage\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/arnold-francisca-f77Bh3inUpE-unsplash.jpg\",\"contentUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/arnold-francisca-f77Bh3inUpE-unsplash.jpg\",\"width\":1000,\"height\":667},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-indentationerror-unexpected-indent\\\/#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 IndentationError: unexpected indent 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 IndentationError: unexpected indent Solution | Career Karma","description":"The Python IndentationError: unexpected indent is raised when you add an additional indent into your code. 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-indentationerror-unexpected-indent\/","og_locale":"en_US","og_type":"article","og_title":"Python IndentationError: unexpected indent Solution","og_description":"The Python IndentationError: unexpected indent is raised when you add an additional indent into your code. On Career Karma, learn how to fix this error.","og_url":"https:\/\/careerkarma.com\/blog\/python-indentationerror-unexpected-indent\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-08-31T18:24:30+00:00","article_modified_time":"2023-12-01T11:58:59+00:00","og_image":[{"width":1000,"height":667,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/04\/arnold-francisca-f77Bh3inUpE-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-indentationerror-unexpected-indent\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/python-indentationerror-unexpected-indent\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"Python IndentationError: unexpected indent Solution","datePublished":"2020-08-31T18:24:30+00:00","dateModified":"2023-12-01T11:58:59+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-indentationerror-unexpected-indent\/"},"wordCount":620,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-indentationerror-unexpected-indent\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/04\/arnold-francisca-f77Bh3inUpE-unsplash.jpg","articleSection":["Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/python-indentationerror-unexpected-indent\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/python-indentationerror-unexpected-indent\/","url":"https:\/\/careerkarma.com\/blog\/python-indentationerror-unexpected-indent\/","name":"Python IndentationError: unexpected indent Solution | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-indentationerror-unexpected-indent\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-indentationerror-unexpected-indent\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/04\/arnold-francisca-f77Bh3inUpE-unsplash.jpg","datePublished":"2020-08-31T18:24:30+00:00","dateModified":"2023-12-01T11:58:59+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"The Python IndentationError: unexpected indent is raised when you add an additional indent into your code. On Career Karma, learn how to fix this error.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/python-indentationerror-unexpected-indent\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/python-indentationerror-unexpected-indent\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/python-indentationerror-unexpected-indent\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/04\/arnold-francisca-f77Bh3inUpE-unsplash.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/04\/arnold-francisca-f77Bh3inUpE-unsplash.jpg","width":1000,"height":667},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/python-indentationerror-unexpected-indent\/#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 IndentationError: unexpected indent 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\/21922","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=21922"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/21922\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/14575"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=21922"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=21922"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=21922"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}