{"id":12032,"date":"2020-10-19T20:36:10","date_gmt":"2020-10-20T03:36:10","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=12032"},"modified":"2023-12-01T04:03:10","modified_gmt":"2023-12-01T12:03:10","slug":"python-enumerate","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/python-enumerate\/","title":{"rendered":"Enumerate Python: Step-by-Step Guide"},"content":{"rendered":"\n<p><em>The Python enumerate() function adds a counter to an iterable object. The counter lets you keep track of how many iterations have occurred. This counter is stored as a separate variable.<\/em><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>The Python programming language has several useful features that can help you sort through and manipulate data. One of these features, which people often forget about is the&nbsp;<em>enumerate()<\/em>&nbsp;Python function.<\/p>\n\n\n\n<p>The&nbsp;built-in <em>enumerate()<\/em> function allows you to loop over a list of items while keeping track of the index value in a separate variable. In this tutorial, we are going to break down how to use the <em>enumerate()<\/em> Python function, and discuss why enumerate() is useful.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Python Iterators Refresher<\/h2>\n\n\n\n<p>Iteration is a process where a particular block of code is run until an outcome is achieved. Often, the outcome is reading every item in a list.<\/p>\n\n\n\n<p>In context, when you loop through a list of employee names, you are iterating through the list. When you create a&nbsp;<em>for<\/em>&nbsp;loop or another type of loop in Python, you <a href=\"https:\/\/careerkarma.com\/blog\/python-iterator\/\">iterate through a set of values<\/a>.<\/p>\n\n\n\n<p>One of the most common iteration procedures is to go through a list based on its length. Let\u2019s say you want to print out a list of employee names from an array. You may use this code:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>employee_names = [&quot;Paul&quot;, &quot;John&quot;, &quot;Abbie&quot;, &quot;Charlotte&quot;, &quot;Ron&quot;]\n\nfor n in range(0, len(employee_names)):\n\tprint(n, employee_names[n])<\/pre><\/div>\n\n\n\n<p>Our code returns the following:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>0 Paul\n1 John\n2 Abbie\n3 Charlotte\n4 Ron<\/pre><\/div>\n\n\n\n<p>On the first line, we declare a <a href=\"https:\/\/careerkarma.com\/blog\/python-variables\/\">Python variable<\/a>\u2014<em>employee_names<\/em>\u2014that holds a list of our employee names. Then, on the next line, we create a <em>for<\/em> loop that iterates through our list of employee names.<\/p>\n\n\n\n<p>This loop will execute equal to the number of items in the employee_names array. The <a href=\"https:\/\/careerkarma.com\/blog\/python-len\/\">len() method<\/a> retrieves how many items are in the employee_names array. The <a href=\"https:\/\/careerkarma.com\/blog\/python-range\/\">range() method<\/a> creates a list of numbers equal to the length of our list. This lets us iterate over each item in our list.<\/p>\n\n\n\n<p>Next, our program prints out the index number, as well as the employee name, which has that index number.<\/p>\n\n\n\n<p>This is an iterative function. However, we could improve on it. That\u2019s where the <em>enumerate()<\/em> function comes in.<\/p>\n\n\n\n<p>For more on Python functions, syntax, and variables check out our <a href=\"https:\/\/careerkarma.com\/blog\/how-to-learn-python\/\">how to learn Python guide<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to Use the Python Enumerate Method<\/h2>\n\n\n\n<p>The enumerate() method creates a counter that tracks how many iterations have occurred in a loop. enumerate() is built-in to Python, so we do not have to import any libraries to use the enumerate() method.<\/p>\n\n\n\n<p>If you use the enumerate method(), don\u2019t have to worry about creating a <em>range()<\/em> statement and then getting the length of an array. enumerate() creates an object that supports iteration. This means you can iterate over enumerate() without having to create a separate iterator.<\/p>\n\n\n\n<p>The enumerate function keeps track of two values: the index and the value of the item. So, instead of having to reference <em>employee_names[n]<\/em> as we did in the first example, we can use <em>name<\/em>. Here is the syntax of enumerate:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>for index, value in enumerate(array_name):\n\t\/\/ Code here<\/pre><\/div>\n\n\n\n<p>Let\u2019s use an example to illustrate how <em>enumerate()<\/em> works:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>employee_names = [&quot;Paul&quot;, &quot;John&quot;, &quot;Abbie&quot;, &quot;Charlotte&quot;, &quot;Ron&quot;]\n\nfor index, name in enumerate(employee_names):\n\tprint(index, name)<\/pre><\/div>\n\n\n\n<p>The <em>enumerate()<\/em> function tells our program that we want to loop through our <em>employee_names<\/em> array. The enumerate() method returns two values: index and name. &#8220;index&#8221; refers to the number of iterations that have occurred. &#8220;name&#8221; is an individual item in our list.<\/p>\n\n\n\n<p>Here\u2019s what our program returns:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>0 Paul\n1 John\n2 Abbie\n3 Charlotte\n4 Ron<\/pre><\/div>\n\n\n\n<p>Our output is the same as the output from our first example. In this example, we are using the <em>enumerate()<\/em> function instead of <em>range()<\/em> and <em>len()<\/em>. Our code is cleaner and easier to read when we use enumerate().<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How the Python Enumerate Object Works<\/h2>\n\n\n\n<p>By default, enumerate() returns a list of tuples. We can see this by specifying one value after our &#8220;for&#8221; statement instead of two:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>for item in enumerate(employee_names):\n\tprint(item)<\/pre><\/div>\n\n\n\n<p>This code returns our employee names alongside the index values of each employee name in our list:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>(0, 'Paul')\n(1, 'John')\n(2, 'Abbie')\n(3, 'Charlotte')\n(4, 'Ron')<\/pre><\/div>\n\n\n\n<p>In our first example, we used &#8220;name&#8221; and &#8220;index&#8221; to separate these values. We accomplished this using a technique called unpacking.<\/p>\n\n\n\n<p>Specifying multiple variables after our &#8220;for&#8221; statement lets us &#8220;unpack&#8221; the result of the enumerate() method. The first variable, &#8220;index&#8221;, correlates with the index number in the tuple. &#8220;name&#8221; becomes the name that is stored in our tuple.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Adding a Starter Index Value<\/h2>\n\n\n\n<p>In our last example, we have not specified an index value.<\/p>\n\n\n\n<p>As a result, our <em>enumerate()<\/em> function starts counting at 0. If we want our program to start at a particular index, we can specify a starter index value. The starter index value is an optional argument. Here\u2019s an example of an <em>enumerate()<\/em> function starting at <em>1<\/em>:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>employee_names = [&quot;Paul&quot;, &quot;John&quot;, &quot;Abbie&quot;, &quot;Charlotte&quot;, &quot;Ron&quot;]\n\nfor index, name in enumerate(employee_names, 1):\n\tprint(index, name)<\/pre><\/div>\n\n\n\n<p>Our program returns the following:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>1 Paul\n2 John\n3 Abbie\n4 Charlotte\n5 Ron<\/pre><\/div>\n\n\n\n<p>s you can see, our list enumerate function returns a list of our names. The number of iterations performed on our array, starting with <em>1<\/em>, is also shown.<\/p>\n\n\n\n<p>This demonstrates how we can manipulate the starting index for the enumerate() method. Instead of starting with 0, our counter starts at 1.<\/p>\n\n\n\n<p>This is useful, for instance, if you are tracking a leaderboard and want to display numbers starting from 1 instead of 0.<\/p>\n\n\n\n<p>You can also create tuples with the index and list item using the <em>enumerate()<\/em> function. Here\u2019s an example of this in action:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>employee_names = [&quot;Paul&quot;, &quot;John&quot;, &quot;Abbie&quot;, &quot;Charlotte&quot;, &quot;Ron&quot;]\nemployee_list_with_counter = list(enumerate(employee_names, 1))\nprint(employee_list_with_counter)<\/pre><\/div>\n\n\n\n<p>Our code returns a list of tuples with the employee names, as well as the counter number from our <em>enumerate()<\/em> function:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>[(1, 'Paul'), (2, 'John'),(3, 'Abbie'), (4, 'Charlotte'), (5, 'Ron')]<\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>Python <em>enumerate()<\/em>&nbsp;is a built-in Python function. The enumerate() function allows you to loop over an iterable object and keep track of how many iterations have occurred. Enumerate is particularly useful if you have an array of values that you want to run through entirely.<\/p>\n\n\n\n<p>Now you\u2019re able to iterate and use&nbsp;<em>enumerate()<\/em>&nbsp;like an expert.<\/p>\n","protected":false},"excerpt":{"rendered":"The Python enumerate() function adds a counter to an iterable object. The counter lets you keep track of how many iterations have occurred. This counter is stored as a separate variable. The Python programming language has several useful features that can help you sort through and manipulate data. One of these features, which people often&hellip;","protected":false},"author":240,"featured_media":15196,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[16578],"tags":[12687],"class_list":{"0":"post-12032","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-python","8":"tag-tutorial"},"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>Enumerate Python: Step-by-Step Guide | Career Karma<\/title>\n<meta name=\"description\" content=\"Python enumerate() allows developers to iterate through item lists while keeping track of index values. Learn more in this Career Karma article.\" \/>\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-enumerate\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Enumerate Python: Step-by-Step Guide\" \/>\n<meta property=\"og:description\" content=\"Python enumerate() allows developers to iterate through item lists while keeping track of index values. Learn more in this Career Karma article.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/python-enumerate\/\" \/>\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-10-20T03:36:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T12:03:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/python-enumerate.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"560\" \/>\n\t<meta property=\"og:image:height\" content=\"315\" \/>\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=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-enumerate\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-enumerate\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"Enumerate Python: Step-by-Step Guide\",\"datePublished\":\"2020-10-20T03:36:10+00:00\",\"dateModified\":\"2023-12-01T12:03:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-enumerate\/\"},\"wordCount\":941,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-enumerate\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/python-enumerate.jpg\",\"keywords\":[\"tutorial\"],\"articleSection\":[\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/careerkarma.com\/blog\/python-enumerate\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-enumerate\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/python-enumerate\/\",\"name\":\"Enumerate Python: Step-by-Step Guide | Career Karma\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-enumerate\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-enumerate\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/python-enumerate.jpg\",\"datePublished\":\"2020-10-20T03:36:10+00:00\",\"dateModified\":\"2023-12-01T12:03:10+00:00\",\"author\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"Python enumerate() allows developers to iterate through item lists while keeping track of index values. Learn more in this Career Karma article.\",\"breadcrumb\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-enumerate\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/careerkarma.com\/blog\/python-enumerate\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-enumerate\/#primaryimage\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/python-enumerate.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/python-enumerate.jpg\",\"width\":560,\"height\":315,\"caption\":\"Python Enumerate\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-enumerate\/#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\":\"Enumerate Python: Step-by-Step Guide\"}]},{\"@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":"Enumerate Python: Step-by-Step Guide | Career Karma","description":"Python enumerate() allows developers to iterate through item lists while keeping track of index values. Learn more in this Career Karma article.","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-enumerate\/","og_locale":"en_US","og_type":"article","og_title":"Enumerate Python: Step-by-Step Guide","og_description":"Python enumerate() allows developers to iterate through item lists while keeping track of index values. Learn more in this Career Karma article.","og_url":"https:\/\/careerkarma.com\/blog\/python-enumerate\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-10-20T03:36:10+00:00","article_modified_time":"2023-12-01T12:03:10+00:00","og_image":[{"width":560,"height":315,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/python-enumerate.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":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/careerkarma.com\/blog\/python-enumerate\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/python-enumerate\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"Enumerate Python: Step-by-Step Guide","datePublished":"2020-10-20T03:36:10+00:00","dateModified":"2023-12-01T12:03:10+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-enumerate\/"},"wordCount":941,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-enumerate\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/python-enumerate.jpg","keywords":["tutorial"],"articleSection":["Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/python-enumerate\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/python-enumerate\/","url":"https:\/\/careerkarma.com\/blog\/python-enumerate\/","name":"Enumerate Python: Step-by-Step Guide | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-enumerate\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-enumerate\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/python-enumerate.jpg","datePublished":"2020-10-20T03:36:10+00:00","dateModified":"2023-12-01T12:03:10+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"Python enumerate() allows developers to iterate through item lists while keeping track of index values. Learn more in this Career Karma article.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/python-enumerate\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/python-enumerate\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/python-enumerate\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/python-enumerate.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/python-enumerate.jpg","width":560,"height":315,"caption":"Python Enumerate"},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/python-enumerate\/#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":"Enumerate Python: Step-by-Step Guide"}]},{"@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\/12032","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=12032"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/12032\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/15196"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=12032"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=12032"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=12032"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}