{"id":22466,"date":"2020-09-11T07:04:15","date_gmt":"2020-09-11T14:04:15","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=22466"},"modified":"2023-12-01T03:59:36","modified_gmt":"2023-12-01T11:59:36","slug":"python-typeerror-slice-indices-must-be-integers-or-none","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/python-typeerror-slice-indices-must-be-integers-or-none\/","title":{"rendered":"Python TypeError: slice indices must be integers or None or have an __index__ method Solution"},"content":{"rendered":"\n<p><a href=\"https:\/\/careerkarma.com\/blog\/python-index\/\">Lists are indexed using whole numbers<\/a>. Whole numbers are known integers. If you try to slice a list using a value that is not an integer, you\u2019ll encounter the \u201cTypeError: slice indices must be integers or None or have an __index__ method\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 explore an example of this error in action so you can learn how to fix it in your program.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">TypeError: slice indices must be integers or None or have an __index__ method<\/h2>\n\n\n\n<p>Indexing lets you uniquely identify all the items in a list. Consider the following example:<br><\/p>\n\n\n\n<table class=\"wp-block-table course-info-table\"><tbody><tr><td>Python<\/td><td>Ruby<\/td><td>Java<\/td><\/tr><tr><td>0<\/td><td>1<\/td><td>2<\/td><\/tr><\/tbody><\/table>\n\n\n\n<p>Each item in our list has its own index number. We can use these index numbers to retrieve an individual item in a list, or a range of items in a list.<br><\/p>\n\n\n\n<p>Index numbers increment by one for each value on a list. All the index numbers assigned to a list are stored as an integer.<br><\/p>\n\n\n\n<p>You cannot access items from a list using a <a href=\"https:\/\/careerkarma.com\/blog\/python-float\/\">floating-point number<\/a>. Although floating-points are still numbers, they are treated differently to integers. A floating point value does not correspond to any index number in a list.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">An Example Scenario<\/h2>\n\n\n\n<p>We\u2019re going to write a program that lets a teacher calculate how many times a student has earned a grade of over 75 in their class. We will give the teacher the option to restrict how many grades are searched.<br><\/p>\n\n\n\n<p>To start, <a href=\"https:\/\/careerkarma.com\/blog\/how-to-initialize-a-list-in-python\/\">define a list of grades for a student<\/a>:<br><\/p>\n\n\n\n<p><code>grades = [73, 72, 90, 69, 83]<br><\/code><\/p>\n\n\n\n<p>This list contains five values. We are going to ask the teacher how many grades the program should take into consideration. The grades are ordered by the time on which a test was taken. The last grade in the list is the most recent.<br><\/p>\n\n\n\n<p>Let\u2019s ask the user how many grades they want to review:<br><\/p>\n\n\n\n<p><code>to_review = float(input(\u201cHow many grades would you like to take into consideration? \u201d))<br><\/code><\/p>\n\n\n\n<p>We convert the value the user inserts to a floating-point number. This is because we need a number to access values from a list using their index numbers.<br><\/p>\n\n\n\n<p>Next, use <a href=\"https:\/\/careerkarma.com\/blog\/python-substring\/\">slicing<\/a> to retrieve those items from our list:<br><\/p>\n\n\n\n<p><code>list_of_grades_to_consider = grades[-to_review:]<br><\/code><\/p>\n\n\n\n<p>This code retrieves the last X values from a list, where X is equal to the value that the teacher inserts into the program. For instance, this code retrieves the last two grades from the <code>grades<\/code> list if a teacher inserts 2 into the input field that we defined earlier.<br><\/p>\n\n\n\n<p>Next, let\u2019s write a <a href=\"https:\/\/careerkarma.com\/blog\/python-for-loop\/\">for loop<\/a> that calculates how many of these grades are over 75:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>high_grades = 0\n\nfor g in list_of_grades_to_consider:\n\tif g &gt; 75:\n\t\thigh_grades += 1<\/pre><\/div>\n\n\n\n<p>We have <a href=\"https:\/\/careerkarma.com\/blog\/python-variables\/\">defined a variable<\/a> called <code>high_grades<\/code> which tracks how many times a student has earned a grade of over 75. We use a for loop to iterate over every grade in our list of grades to consider. If a grade is over 75, we add 1 to the <code>high_grades<\/code> value.<br><\/p>\n\n\n\n<p>Finally, print out a message to the console that tells us how many times a student has earned a grade of over 75:<br><\/p>\n\n\n\n<p><code>print(\u201cThis student has earned a grade of over 75 {} times.\u201d.format(high_grades))<br><\/code><\/p>\n\n\n\n<p>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>How many grades would you like to take into consideration? 3\nTraceback (most recent call last):\n  File &quot;main.py&quot;, line 5, in &lt;module&gt;\n\tlist_of_grades_to_consider = grades[-to_review:]\nTypeError: slice indices must be integers or None or have an __index__ method\n<\/pre><\/div>\n\n\n\n<p>Our code asks our user how many grades they would like the program to consider. Then, our program stops and returns an error.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The Solution<\/h2>\n\n\n\n<p>We surrounded our <code>input() <\/code>statement with the <code>float() <\/code>method. This converts the value that the teacher inserts into our program to a floating-point number.<br><\/p>\n\n\n\n<p>Our program returns an error because we\u2019re trying to slice a list using a floating-point number. This is not possible because lists are indexed using integers.<br><\/p>\n\n\n\n<p>To solve this problem, we\u2019re going to use the <code>int() <\/code>method to convert the value a user inserts into our program into an integer:<br><\/p>\n\n\n\n<p><code>to_review = int(input(\u201cHow many grades would you like to take into consideration? \u201d))<br><\/code><\/p>\n\n\n\n<p>We\u2019ve replaced <code>float() <\/code>with <code>int()<\/code>. Run our program and see if it works:<br><\/p>\n\n\n\n<p>How many grades would you like to take into consideration? 3<\/p>\n\n\n\n<p>This student has earned a grade of over 75 2 times.<br><\/p>\n\n\n\n<p>Our code works. Our code tells us that in the last three tests, a student has earned a grade of over 75 on two occasions.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The \u201cTypeError: slice indices must be integers or None or have an __index__ method\u201d error is raised when you try to slice a list using a value that is not an integer, such as a float.<br><\/p>\n\n\n\n<p>To solve this error, make sure any values you use in a slicing statement are integers. Now you have the knowledge you need to fix this error like a professional Python coder!<br><\/p>\n","protected":false},"excerpt":{"rendered":"Lists are indexed using whole numbers. Whole numbers are known integers. If you try to slice a list using a value that is not an integer, you\u2019ll encounter the \u201cTypeError: slice indices must be integers or None or have an __index__ method\u201d error. In this guide, we discuss what this error means and why it&hellip;","protected":false},"author":240,"featured_media":22467,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[16578],"tags":[],"class_list":{"0":"post-22466","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>Slice indices must be integers or None or have an __index | Career Karma<\/title>\n<meta name=\"description\" content=\"On Career Karma, learn the cause of and the solution to the Python TypeError: slice indices must be integers or None or have an __index__ method 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-slice-indices-must-be-integers-or-none\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python TypeError: slice indices must be integers or None or have an __index__ method Solution\" \/>\n<meta property=\"og:description\" content=\"On Career Karma, learn the cause of and the solution to the Python TypeError: slice indices must be integers or None or have an __index__ method error.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/python-typeerror-slice-indices-must-be-integers-or-none\/\" \/>\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-11T14:04:15+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T11:59:36+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/09\/lauren-gray-Ib2pdxR8fY0-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=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-slice-indices-must-be-integers-or-none\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-slice-indices-must-be-integers-or-none\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"Python TypeError: slice indices must be integers or None or have an __index__ method Solution\",\"datePublished\":\"2020-09-11T14:04:15+00:00\",\"dateModified\":\"2023-12-01T11:59:36+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-slice-indices-must-be-integers-or-none\/\"},\"wordCount\":727,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-slice-indices-must-be-integers-or-none\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/09\/lauren-gray-Ib2pdxR8fY0-unsplash.jpg\",\"articleSection\":[\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/careerkarma.com\/blog\/python-typeerror-slice-indices-must-be-integers-or-none\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-slice-indices-must-be-integers-or-none\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-slice-indices-must-be-integers-or-none\/\",\"name\":\"Slice indices must be integers or None or have an __index | Career Karma\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-slice-indices-must-be-integers-or-none\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-slice-indices-must-be-integers-or-none\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/09\/lauren-gray-Ib2pdxR8fY0-unsplash.jpg\",\"datePublished\":\"2020-09-11T14:04:15+00:00\",\"dateModified\":\"2023-12-01T11:59:36+00:00\",\"author\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"On Career Karma, learn the cause of and the solution to the Python TypeError: slice indices must be integers or None or have an __index__ method error.\",\"breadcrumb\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-slice-indices-must-be-integers-or-none\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/careerkarma.com\/blog\/python-typeerror-slice-indices-must-be-integers-or-none\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-slice-indices-must-be-integers-or-none\/#primaryimage\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/09\/lauren-gray-Ib2pdxR8fY0-unsplash.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/09\/lauren-gray-Ib2pdxR8fY0-unsplash.jpg\",\"width\":1000,\"height\":667},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-slice-indices-must-be-integers-or-none\/#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: slice indices must be integers or None or have an __index__ method 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":"Slice indices must be integers or None or have an __index | Career Karma","description":"On Career Karma, learn the cause of and the solution to the Python TypeError: slice indices must be integers or None or have an __index__ method 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-slice-indices-must-be-integers-or-none\/","og_locale":"en_US","og_type":"article","og_title":"Python TypeError: slice indices must be integers or None or have an __index__ method Solution","og_description":"On Career Karma, learn the cause of and the solution to the Python TypeError: slice indices must be integers or None or have an __index__ method error.","og_url":"https:\/\/careerkarma.com\/blog\/python-typeerror-slice-indices-must-be-integers-or-none\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-09-11T14:04:15+00:00","article_modified_time":"2023-12-01T11:59:36+00:00","og_image":[{"width":1000,"height":667,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/09\/lauren-gray-Ib2pdxR8fY0-unsplash.jpg","type":"image\/jpeg"}],"author":"James Gallagher","twitter_card":"summary_large_image","twitter_creator":"@career_karma","twitter_site":"@career_karma","twitter_misc":{"Written by":"James Gallagher","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-slice-indices-must-be-integers-or-none\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-slice-indices-must-be-integers-or-none\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"Python TypeError: slice indices must be integers or None or have an __index__ method Solution","datePublished":"2020-09-11T14:04:15+00:00","dateModified":"2023-12-01T11:59:36+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-slice-indices-must-be-integers-or-none\/"},"wordCount":727,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-slice-indices-must-be-integers-or-none\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/09\/lauren-gray-Ib2pdxR8fY0-unsplash.jpg","articleSection":["Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/python-typeerror-slice-indices-must-be-integers-or-none\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-slice-indices-must-be-integers-or-none\/","url":"https:\/\/careerkarma.com\/blog\/python-typeerror-slice-indices-must-be-integers-or-none\/","name":"Slice indices must be integers or None or have an __index | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-slice-indices-must-be-integers-or-none\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-slice-indices-must-be-integers-or-none\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/09\/lauren-gray-Ib2pdxR8fY0-unsplash.jpg","datePublished":"2020-09-11T14:04:15+00:00","dateModified":"2023-12-01T11:59:36+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"On Career Karma, learn the cause of and the solution to the Python TypeError: slice indices must be integers or None or have an __index__ method error.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-slice-indices-must-be-integers-or-none\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/python-typeerror-slice-indices-must-be-integers-or-none\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-slice-indices-must-be-integers-or-none\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/09\/lauren-gray-Ib2pdxR8fY0-unsplash.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/09\/lauren-gray-Ib2pdxR8fY0-unsplash.jpg","width":1000,"height":667},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-slice-indices-must-be-integers-or-none\/#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: slice indices must be integers or None or have an __index__ method 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\/22466","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=22466"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/22466\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/22467"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=22466"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=22466"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=22466"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}