{"id":22120,"date":"2020-09-04T09:44:18","date_gmt":"2020-09-04T16:44:18","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=22120"},"modified":"2023-12-01T03:59:22","modified_gmt":"2023-12-01T11:59:22","slug":"python-taberror-inconsistent-use-of-tabs-and-spaces-in-indentation","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/python-taberror-inconsistent-use-of-tabs-and-spaces-in-indentation\/","title":{"rendered":"Python TabError: inconsistent use of tabs and spaces in indentation Solution"},"content":{"rendered":"\n<p>You can indent code using either spaces or tabs in a Python program. If you try to use a combination of both in the same block of code, you\u2019ll encounter the \u201cTabError: inconsistent use of tabs and spaces in indentation\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 to solve it in your code.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">TabError: inconsistent use of tabs and spaces in indentation<\/h2>\n\n\n\n<p>While the <a href=\"https:\/\/www.python.org\/dev\/peps\/pep-0008\/#tabs-or-spaces\" target=\"_blank\" rel=\"noopener\" rel=\"nofollow\">Python style guide<\/a> does say spaces are the preferred method of indentation when coding in Python, you can use either spaces or tabs.<br><\/p>\n\n\n\n<p>Indentation is important in Python because the language doesn\u2019t depend on syntax like curly brackets to denote where a block of code starts and finishes. Indents tell Python what lines of code are part of what code blocks.<br><\/p>\n\n\n\n<p>Consider the following program:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>numbers = [8, 7, 9, 8, 7]\n\ndef calculate_average_age():\naverage = sum(numbers) \/ len(numbers)\nprint(average)<\/pre><\/div>\n\n\n\n<p>Without indentation, it is impossible to know what lines of code should be part of the calculate_average_age function and what lines of code are part of the main program.<br><\/p>\n\n\n\n<p>You must stick with using either spaces or tabs. Do not mix tabs and spaces. Doing so will confuse the Python interpreter and cause the \u201cTabError: inconsistent use of tabs and spaces in indentation\u201d error.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">An Example Scenario<\/h2>\n\n\n\n<p>We want to build a program that calculates the total value of the purchases made at a donut store. To start, let\u2019s <a href=\"https:\/\/careerkarma.com\/blog\/python-array\/\">define a list of purchases<\/a>:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>purchases = [2.50, 4.90, 5.60, 2.40]<\/pre><\/div>\n\n\n\n<p>Next, we\u2019re going to <a href=\"https:\/\/careerkarma.com\/blog\/python-functions\/\">define a function<\/a> that calculates the total of the \u201cpurchases\u201d list:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>def calculate_total_purchases(purchases):\n\ttotal = sum(purchases)\n    return total<\/pre><\/div>\n\n\n\n<p><a href=\"https:\/\/careerkarma.com\/blog\/python-args-kwargs\/\">Our function accepts one parameter<\/a>: the list of purchases which total value we want to calculate. The function returns the total value of the list we specify as a parameter.<br><\/p>\n\n\n\n<p>We use the <a href=\"https:\/\/careerkarma.com\/blog\/python-sum\/\">sum() method<\/a> to calculate the total of the numbers in the \u201cpurchases\u201d list.<br><\/p>\n\n\n\n<p>If you copy this code snippet into your text editor, you may notice the \u201creturn total\u201d line of code is indented using spaces whereas the \u201ctotal = sum(purchases)\u201d line of code uses tabs for indentation. This is an important distinction.<br><\/p>\n\n\n\n<p>Next, call our function and print the value it returns to the console:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>total_purchases = calculate_total_purchases(purchases)\nprint(total_purchases)<\/pre><\/div>\n\n\n\n<p>Our code calls the <code>calculate_total_purchases()<\/code> function to calculate the total value of all the purchases made at the donut store. We then print that value 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>  File &quot;test1.py&quot;, line 5\n\treturn total\n           \t^\nTabError: inconsistent use of tabs and spaces in indentation<\/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 used spaces and tabs to indent our code. In a Python program, you should stick to using either one of these two methods of indentation.<br><\/p>\n\n\n\n<p>To fix our code, we\u2019re going to change our function so that we only use spaces:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>def calculate_total_purchases(purchases):\n    total = sum(purchases)\n    return total<\/pre><\/div>\n\n\n\n<p>Our code uses 4 spaces for indentation. Let\u2019s run our program with our new indentation:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>15.4<\/pre><\/div>\n\n\n\n<p>Our program successfully calculates the total value of the donut purchases.<br><\/p>\n\n\n\n<p>In the IDLE editor, you can remove the indentation for a block of code by following these instructions:<br><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Select the code whose indentation you want to remove<\/li><li>Click \u201cMenu\u201d -&gt; \u201cFormat\u201d -&gt; \u201cUntabify region\u201d<\/li><li>Insert the type of indentation you want to use<\/li><\/ul>\n\n\n\n<p>This is a convenient way of fixing the formatting in a document, assuming you are using the IDLE editor. Many other editors, like Sublime Text, have their own methods of changing the indentation in a file.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The Python \u201cTabError: inconsistent use of tabs and spaces in indentation\u201d error is raised when you try to indent code using both spaces and tabs.<br><\/p>\n\n\n\n<p>You fix this error by sticking to either spaces or tabs in a program and replacing any tabs or spaces that do not use your preferred method of indentation. Now you have the knowledge you need to fix this error like a <a href=\"https:\/\/careerkarma.com\/blog\/how-long-to-learn-python\/\">professional programmer<\/a>!<\/p>\n","protected":false},"excerpt":{"rendered":"You can indent code using either spaces or tabs in a Python program. If you try to use a combination of both in the same block of code, you\u2019ll encounter the \u201cTabError: inconsistent use of tabs and spaces in indentation\u201d error. In this guide, we discuss what this error means and why it is raised.&hellip;","protected":false},"author":240,"featured_media":22121,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[16578],"tags":[],"class_list":{"0":"post-22120","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: inconsistent use of tabs and spaces in indentation | Career Karma<\/title>\n<meta name=\"description\" content=\"On Career Karma, learn how to solve the TabError: inconsistent use of tabs and spaces in indentation 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-taberror-inconsistent-use-of-tabs-and-spaces-in-indentation\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python TabError: inconsistent use of tabs and spaces in indentation Solution\" \/>\n<meta property=\"og:description\" content=\"On Career Karma, learn how to solve the TabError: inconsistent use of tabs and spaces in indentation Python error.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/python-taberror-inconsistent-use-of-tabs-and-spaces-in-indentation\/\" \/>\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-04T16:44:18+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\/09\/rayi-christian-wicaksono-6PF6DaiWz48-unsplash.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1020\" \/>\n\t<meta property=\"og:image:height\" content=\"765\" \/>\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-taberror-inconsistent-use-of-tabs-and-spaces-in-indentation\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-taberror-inconsistent-use-of-tabs-and-spaces-in-indentation\\\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"Python TabError: inconsistent use of tabs and spaces in indentation Solution\",\"datePublished\":\"2020-09-04T16:44:18+00:00\",\"dateModified\":\"2023-12-01T11:59:22+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-taberror-inconsistent-use-of-tabs-and-spaces-in-indentation\\\/\"},\"wordCount\":641,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-taberror-inconsistent-use-of-tabs-and-spaces-in-indentation\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/09\\\/rayi-christian-wicaksono-6PF6DaiWz48-unsplash.jpg\",\"articleSection\":[\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-taberror-inconsistent-use-of-tabs-and-spaces-in-indentation\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-taberror-inconsistent-use-of-tabs-and-spaces-in-indentation\\\/\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-taberror-inconsistent-use-of-tabs-and-spaces-in-indentation\\\/\",\"name\":\"Python: inconsistent use of tabs and spaces in indentation | Career Karma\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-taberror-inconsistent-use-of-tabs-and-spaces-in-indentation\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-taberror-inconsistent-use-of-tabs-and-spaces-in-indentation\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/09\\\/rayi-christian-wicaksono-6PF6DaiWz48-unsplash.jpg\",\"datePublished\":\"2020-09-04T16:44:18+00:00\",\"dateModified\":\"2023-12-01T11:59:22+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"On Career Karma, learn how to solve the TabError: inconsistent use of tabs and spaces in indentation Python error.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-taberror-inconsistent-use-of-tabs-and-spaces-in-indentation\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-taberror-inconsistent-use-of-tabs-and-spaces-in-indentation\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-taberror-inconsistent-use-of-tabs-and-spaces-in-indentation\\\/#primaryimage\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/09\\\/rayi-christian-wicaksono-6PF6DaiWz48-unsplash.jpg\",\"contentUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/09\\\/rayi-christian-wicaksono-6PF6DaiWz48-unsplash.jpg\",\"width\":1020,\"height\":765},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-taberror-inconsistent-use-of-tabs-and-spaces-in-indentation\\\/#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 TabError: inconsistent use of tabs and spaces in indentation 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: inconsistent use of tabs and spaces in indentation | Career Karma","description":"On Career Karma, learn how to solve the TabError: inconsistent use of tabs and spaces in indentation 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-taberror-inconsistent-use-of-tabs-and-spaces-in-indentation\/","og_locale":"en_US","og_type":"article","og_title":"Python TabError: inconsistent use of tabs and spaces in indentation Solution","og_description":"On Career Karma, learn how to solve the TabError: inconsistent use of tabs and spaces in indentation Python error.","og_url":"https:\/\/careerkarma.com\/blog\/python-taberror-inconsistent-use-of-tabs-and-spaces-in-indentation\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-09-04T16:44:18+00:00","article_modified_time":"2023-12-01T11:59:22+00:00","og_image":[{"width":1020,"height":765,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/09\/rayi-christian-wicaksono-6PF6DaiWz48-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-taberror-inconsistent-use-of-tabs-and-spaces-in-indentation\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/python-taberror-inconsistent-use-of-tabs-and-spaces-in-indentation\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"Python TabError: inconsistent use of tabs and spaces in indentation Solution","datePublished":"2020-09-04T16:44:18+00:00","dateModified":"2023-12-01T11:59:22+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-taberror-inconsistent-use-of-tabs-and-spaces-in-indentation\/"},"wordCount":641,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-taberror-inconsistent-use-of-tabs-and-spaces-in-indentation\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/09\/rayi-christian-wicaksono-6PF6DaiWz48-unsplash.jpg","articleSection":["Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/python-taberror-inconsistent-use-of-tabs-and-spaces-in-indentation\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/python-taberror-inconsistent-use-of-tabs-and-spaces-in-indentation\/","url":"https:\/\/careerkarma.com\/blog\/python-taberror-inconsistent-use-of-tabs-and-spaces-in-indentation\/","name":"Python: inconsistent use of tabs and spaces in indentation | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-taberror-inconsistent-use-of-tabs-and-spaces-in-indentation\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-taberror-inconsistent-use-of-tabs-and-spaces-in-indentation\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/09\/rayi-christian-wicaksono-6PF6DaiWz48-unsplash.jpg","datePublished":"2020-09-04T16:44:18+00:00","dateModified":"2023-12-01T11:59:22+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"On Career Karma, learn how to solve the TabError: inconsistent use of tabs and spaces in indentation Python error.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/python-taberror-inconsistent-use-of-tabs-and-spaces-in-indentation\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/python-taberror-inconsistent-use-of-tabs-and-spaces-in-indentation\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/python-taberror-inconsistent-use-of-tabs-and-spaces-in-indentation\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/09\/rayi-christian-wicaksono-6PF6DaiWz48-unsplash.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/09\/rayi-christian-wicaksono-6PF6DaiWz48-unsplash.jpg","width":1020,"height":765},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/python-taberror-inconsistent-use-of-tabs-and-spaces-in-indentation\/#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 TabError: inconsistent use of tabs and spaces in indentation 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\/22120","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=22120"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/22120\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/22121"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=22120"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=22120"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=22120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}