{"id":22457,"date":"2020-09-11T09:35:12","date_gmt":"2020-09-11T16:35:12","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=22457"},"modified":"2023-12-01T03:59:37","modified_gmt":"2023-12-01T11:59:37","slug":"python-typeerror-list-indices-must-be-integers-or-slices-not-float-solution","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-or-slices-not-float-solution\/","title":{"rendered":"Python TypeError: list indices must be integers or slices, not float Solution"},"content":{"rendered":"\n<p>Lists are indexed using index numbers. These numbers are integer values. If you try to access an item from a list using a floating-point number, the \u201cTypeError: list indices must be integers or slices, not float\u201d error will be raised.<br><\/p>\n\n\n\n<p>This guide discusses what this error means and why you may encounter it. We\u2019ll walk through an example of this error so you can learn how to fix it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">TypeError: list indices must be integers or slices, not float<\/h2>\n\n\n\n<p>When an item is added to a list, <a href=\"https:\/\/careerkarma.com\/blog\/python-index\/\">the item is assigned an index value<\/a>. Index values start from zero and increment by one for each new item in the list. This makes it easy to access individual items. The first item in a list has the index 0, the second has the index 1, and so on.<br><\/p>\n\n\n\n<p>You cannot retrieve items from a list using floating-point numbers. <a href=\"https:\/\/careerkarma.com\/blog\/python-float\/\">Floating-point numbers<\/a> are a different data type. As a result, they are treated differently by Python. Lists expect an integer index number because lists are indexed using integers.<\/p>\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 retrieves information about a participant in a tennis tournament. To start, define a <a href=\"https:\/\/careerkarma.com\/blog\/python-array\/\">list of lists<\/a>. This list of lists will contain information about all of the participants in the tournament:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>participants = [\n\t    [&quot;Alex Rogers&quot;, 5, 2],\n\t    [&quot;Linda Patterson&quot;, 3, 4],\n\t    [&quot;Ruby Spencer&quot;, 1, 6]\n]<\/pre><\/div>\n\n\n\n<p>Our list of participants contains three lists. Each of these lists the name of a participant, the number of games they have won, and the number of games they have lost, in that order.<br><\/p>\n\n\n\n<p>The values are ordered by the number of times a player has won.<br><\/p>\n\n\n\n<p>Next, we ask the user for the player whose information they want to view. We do this using an <a href=\"https:\/\/careerkarma.com\/blog\/python-input\/\">input() statement<\/a>:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>player_to_find = float(input(&quot;Enter the leaderboard position of the player you want to find: &quot;))<\/pre><\/div>\n\n\n\n<p>The number a user inserts should correspond to the position of a player on the leaderboard. Alex Rogers is first. To find out about him, the user would insert 1.<br><\/p>\n\n\n\n<p>We convert the value the user inserts to a float because we\u2019re going to be using indexing later in our code. Index values are numerical and so we\u2019ll need a number to work with.<br><\/p>\n\n\n\n<p>Next, use indexing to retrieve the player for which the user is looking:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>player_info = participants[player_to_find - 1]<\/pre><\/div>\n\n\n\n<p>We use the value the user inserts to find the record of an individual player from our \u201cparticipants\u201d list. We subtract 1 to the value of \u201cplayer_to_find\u201d because lists are indexed from zero and the first person on the leaderboard will be in position #1.<br><\/p>\n\n\n\n<p>Next, <a href=\"https:\/\/careerkarma.com\/blog\/python-print-without-new-line\/\">print out the details<\/a> about this participant to the console:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>print(&quot;Name: {}&quot;.format(player_info[0]))\nprint(&quot;Wins: {}&quot;.format(player_info[1]))\nprint(&quot;Losses: {}&quot;.format(player_info[2]))<\/pre><\/div>\n\n\n\n<p>We display the name of a player, how many games they have won, and how many games they have lost to the console. Let\u2019s run our program:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>Enter the leaderboard position of the player you want to find: 2\nTraceback (most recent call last):\n File &quot;main.py&quot;, line 9, in &lt;module&gt;\n\t    player_info = participants[player_to_find + 1]\nTypeError: list indices must be integers or slices, not float<\/pre><\/div>\n\n\n\n<p>After we insert a leaderboard position into our program, an error is raised.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The Solution<\/h2>\n\n\n\n<p>We convert the value a user inserts into our program to a float. We do this using the <code>float()<\/code> method.<br><\/p>\n\n\n\n<p>This is a mistake because when it comes time to retrieve an item from our \u201cparticipants\u201d list, we try to do so with a floating-point number. This causes an error.<br><\/p>\n\n\n\n<p>To fix our program, we must convert the value a user inserts to an integer instead of a floating-point number. We can do this using the <code>int()<\/code> method:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>player_to_find = int(input(&quot;Enter the leaderboard position of the player you want to find: &quot;))<\/pre><\/div>\n\n\n\n<p>Now that we have an integer value, we can retrieve items from our lists using indexing. Run our code and see what happens:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>Enter the number of the player you want to find: 2\nName: Linda Patterson\nWins: 3\nLosses: 4<\/pre><\/div>\n\n\n\n<p>Our code successfully shows us the player record of the individual who is at position #2 on the leaderboard.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The \u201cTypeError: list indices must be integers or slices, not float\u201d error occurs when you try to access an item from a list using a floating-point number. To solve this error, make sure you only use integers to access items in a list by their index value.<br><\/p>\n\n\n\n<p>Now you\u2019re ready to fix this error in your code like a pro!<\/p>\n","protected":false},"excerpt":{"rendered":"Lists are indexed using index numbers. These numbers are integer values. If you try to access an item from a list using a floating-point number, the \u201cTypeError: list indices must be integers or slices, not float\u201d error will be raised. This guide discusses what this error means and why you may encounter it. We\u2019ll walk&hellip;","protected":false},"author":240,"featured_media":21178,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[16578],"tags":[],"class_list":{"0":"post-22457","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-python"},"acf":{"post_sub_title":"","sprint_id":"","query_class":"Python","school_sft":"","parent_sft":"","school_privacy_policy":"","has_review":null,"is_sponser_post":"","is_guest_post":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.0 (Yoast SEO v27.0) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>TypeError: list indices must be integers or slices, not float<\/title>\n<meta name=\"description\" content=\"The TypeError: list indices must be integers or slices, not float occurs if you try to index a list using a float. On Career Karma, learn how to solve this 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-typeerror-list-indices-must-be-integers-or-slices-not-float-solution\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python TypeError: list indices must be integers or slices, not float Solution\" \/>\n<meta property=\"og:description\" content=\"The TypeError: list indices must be integers or slices, not float occurs if you try to index a list using a float. On Career Karma, learn how to solve this Python error.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-or-slices-not-float-solution\/\" \/>\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-11T16:35:12+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T11:59:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/jannis-brandt-4mHaSX8zvJI-unsplash.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1020\" \/>\n\t<meta property=\"og:image:height\" content=\"680\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"James Gallagher\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@career_karma\" \/>\n<meta name=\"twitter:site\" content=\"@career_karma\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"James Gallagher\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"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-list-indices-must-be-integers-or-slices-not-float-solution\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-or-slices-not-float-solution\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"Python TypeError: list indices must be integers or slices, not float Solution\",\"datePublished\":\"2020-09-11T16:35:12+00:00\",\"dateModified\":\"2023-12-01T11:59:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-or-slices-not-float-solution\/\"},\"wordCount\":652,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-or-slices-not-float-solution\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/jannis-brandt-4mHaSX8zvJI-unsplash.jpg\",\"articleSection\":[\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-or-slices-not-float-solution\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-or-slices-not-float-solution\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-or-slices-not-float-solution\/\",\"name\":\"TypeError: list indices must be integers or slices, not float\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-or-slices-not-float-solution\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-or-slices-not-float-solution\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/jannis-brandt-4mHaSX8zvJI-unsplash.jpg\",\"datePublished\":\"2020-09-11T16:35:12+00:00\",\"dateModified\":\"2023-12-01T11:59:37+00:00\",\"author\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"The TypeError: list indices must be integers or slices, not float occurs if you try to index a list using a float. On Career Karma, learn how to solve this Python error.\",\"breadcrumb\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-or-slices-not-float-solution\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-or-slices-not-float-solution\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-or-slices-not-float-solution\/#primaryimage\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/jannis-brandt-4mHaSX8zvJI-unsplash.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/jannis-brandt-4mHaSX8zvJI-unsplash.jpg\",\"width\":1020,\"height\":680},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-or-slices-not-float-solution\/#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: list indices must be integers or slices, not float Solution\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\",\"url\":\"https:\/\/careerkarma.com\/blog\/\",\"name\":\"Career Karma\",\"description\":\"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/careerkarma.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\",\"name\":\"James Gallagher\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg\",\"caption\":\"James Gallagher\"},\"description\":\"James Gallagher is a self-taught programmer and the technical content manager at Career Karma. He has experience in range of programming languages and extensive expertise in Python, HTML, CSS, and JavaScript. James has written hundreds of programming tutorials, and he frequently contributes to publications like Codecademy, Treehouse, Repl.it, Afrotech, and others.\",\"url\":\"https:\/\/careerkarma.com\/blog\/author\/jamesgallagher\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"TypeError: list indices must be integers or slices, not float","description":"The TypeError: list indices must be integers or slices, not float occurs if you try to index a list using a float. On Career Karma, learn how to solve this 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-typeerror-list-indices-must-be-integers-or-slices-not-float-solution\/","og_locale":"en_US","og_type":"article","og_title":"Python TypeError: list indices must be integers or slices, not float Solution","og_description":"The TypeError: list indices must be integers or slices, not float occurs if you try to index a list using a float. On Career Karma, learn how to solve this Python error.","og_url":"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-or-slices-not-float-solution\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-09-11T16:35:12+00:00","article_modified_time":"2023-12-01T11:59:37+00:00","og_image":[{"width":1020,"height":680,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/jannis-brandt-4mHaSX8zvJI-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-list-indices-must-be-integers-or-slices-not-float-solution\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-or-slices-not-float-solution\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"Python TypeError: list indices must be integers or slices, not float Solution","datePublished":"2020-09-11T16:35:12+00:00","dateModified":"2023-12-01T11:59:37+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-or-slices-not-float-solution\/"},"wordCount":652,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-or-slices-not-float-solution\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/jannis-brandt-4mHaSX8zvJI-unsplash.jpg","articleSection":["Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-or-slices-not-float-solution\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-or-slices-not-float-solution\/","url":"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-or-slices-not-float-solution\/","name":"TypeError: list indices must be integers or slices, not float","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-or-slices-not-float-solution\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-or-slices-not-float-solution\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/jannis-brandt-4mHaSX8zvJI-unsplash.jpg","datePublished":"2020-09-11T16:35:12+00:00","dateModified":"2023-12-01T11:59:37+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"The TypeError: list indices must be integers or slices, not float occurs if you try to index a list using a float. On Career Karma, learn how to solve this Python error.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-or-slices-not-float-solution\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-or-slices-not-float-solution\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-or-slices-not-float-solution\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/jannis-brandt-4mHaSX8zvJI-unsplash.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/jannis-brandt-4mHaSX8zvJI-unsplash.jpg","width":1020,"height":680},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-list-indices-must-be-integers-or-slices-not-float-solution\/#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: list indices must be integers or slices, not float 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\/22457","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=22457"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/22457\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/21178"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=22457"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=22457"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=22457"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}