{"id":21086,"date":"2020-08-12T12:03:43","date_gmt":"2020-08-12T19:03:43","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=21086"},"modified":"2023-12-01T03:57:46","modified_gmt":"2023-12-01T11:57:46","slug":"python-attributeerror-list-object-has-no-attribute-split","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/python-attributeerror-list-object-has-no-attribute-split\/","title":{"rendered":"Python attributeerror: \u2018list\u2019 object has no attribute \u2018split\u2019 Solution"},"content":{"rendered":"\n<p><a href=\"https:\/\/careerkarma.com\/blog\/what-python-is-used-for\/\">Python<\/a> lists cannot be divided into separate lists based on characters that appear in the values of a list. This is unlike strings which values can be separated into a list.<br><\/p>\n\n\n\n<p>If you try to use the <a href=\"https:\/\/careerkarma.com\/blog\/python-split\/\">split()<\/a> method on a list, you get the error \u201cattributeerror: \u2018list\u2019 object has no attribute \u2018split\u2019\u201d.<br><\/p>\n\n\n\n<p>In this guide, we talk about what this error means and why you may find it in your code. We also walk through an example scenario to help you figure out how to solve this error.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">attributeerror: \u2018list\u2019 object has no attribute \u2018split\u2019<\/h2>\n\n\n\n<p>This error tells us we are trying to use a function that is not available on lists.<br><\/p>\n\n\n\n<p>The <code>split()<\/code> method splits a string into a <a href=\"https:\/\/careerkarma.com\/blog\/python-array\/\">list<\/a>. The string is broken up at every point where a separator character appears. For instance, you can divide a string into a list which contains all values that appear after a comma and a space (\u201c, \u201d):<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>cakes = &quot;Cheese Scone, Cherry Scone, Fruit Scone&quot;\ncake_list = cakes.split(&quot;, &quot;)\n\nprint(cake_list)<\/pre><\/div>\n\n\n\n<p>Our code splits the \u201ccakes\u201d string between the places where a comma followed by a space is present. These values are then added to the list called \u201ccake_list\u201d. Our code returns:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>['Cheese Scone', 'Cherry Scone', 'Fruit Scone']<\/pre><\/div>\n\n\n\n<p>The <code>split()<\/code> operation only works on strings.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">An Example Scenario<\/h2>\n\n\n\n<p>We have a <a href=\"https:\/\/careerkarma.com\/blog\/python-csv-module\/\">CSV file<\/a> which contains information about cakes sold at a tea house. We want to print out the name of each cake to the Python shell so that customers can choose what they want to have with their drink.<br><\/p>\n\n\n\n<p>Our CSV file looks like this:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>Cheese Scone, $1.30, Vegetarian\nToasted Teacake, $1.50, Vegetarian\nFruit Bread, $1.40, Vegetarian<\/pre><\/div>\n\n\n\n<p>Our file contains three entries: one for cheese scones, one for toasted teacakes, and one for fruit bread. We read this file into our program so that we an access our values: <\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>with open(&quot;cakes.csv&quot;, &quot;r&quot;) as file:\n\tcakes = file.readlines()\n\n\tcake_names = cakes.split(&quot;, &quot;)[0]\n\tprint(cake_names)<\/pre><\/div>\n\n\n\n<p>This program reads the \u201ccakes.csv\u201d file. It then uses the <code>split()<\/code> method to split up the values in each record so that we can access the names of each cake.<br><\/p>\n\n\n\n<p>We use the <a href=\"https:\/\/careerkarma.com\/blog\/python-index\/\">[0] indexing syntax<\/a> to access the first item in a record. This corresponds to the name of a cake.<br><\/p>\n\n\n\n<p>Let\u2019s run our code and see what happens:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>Traceback (most recent call last):\n  File &quot;main.py&quot;, line 4, in &lt;module&gt;\n\tcake_names = cakes.split(&quot;, &quot;)[0]\nAttributeError: 'list' object has no attribute 'split'<\/pre><\/div>\n\n\n\n<p>Our code, as expected, returns an error.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The Solution<\/h2>\n\n\n\n<p>We try to use the <code>split()<\/code> method on a list. Let\u2019s print out the contents of \u201ccakes\u201d to the console:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>with open(&quot;cakes.csv&quot;, &quot;r&quot;) as file:\n\tcakes = file.readlines()\n\tprint(cakes)<\/pre><\/div>\n\n\n\n<p>Our code returns: <\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>['Cheese Scone, $1.30, Vegetarian\\n', 'Toasted Teacake, $1.50, Vegetarian\\n', 'Fruit Bread, $1.40, Vegetarian\\n']<\/pre><\/div>\n\n\n\n<p>Our code cannot separate a list into multiple lists using <code>split()<\/code>. This is because lists are already separated by commas. Instead, we should use the <code>split()<\/code> method on each item in our list.<br><\/p>\n\n\n\n<p>We can do this by using a <a href=\"https:\/\/careerkarma.com\/blog\/python-for-loop\/\">for loop<\/a> to iterate over every line in the \u201ccakes.csv\u201d file:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>with open(&quot;cakes.csv&quot;, &quot;r&quot;) as file:\n\tcakes = file.readlines()\n\n\tfor c in cakes:\n\t\tsplit_lines = c.split(&quot;, &quot;)\n\t\tprint(split_lines[0])<\/pre><\/div>\n\n\n\n<p>We initialized a for loop that goes through every line in the \u201ccakes\u201d variable. We use the <code>split()<\/code> method to divide each string value in the list by the \u201c, \u201dstring pattern. This means the cake names, prices, and vegetarian status are to be divided into a list.<br><\/p>\n\n\n\n<p>On the last line of our code, we use <code>split_lines[0]<\/code> to print out the first item in each new list. This is equal to the name of each cake. Let\u2019s try to run our code:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>Cheese Scone\nToasted Teacake\nFruit Bread<\/pre><\/div>\n\n\n\n<p>Our code successfully prints out a list of cakes. This is because we did not separate a list. We use <code>split()<\/code> to separate all the items in each string that appears in our list.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The \u201cattributeerror: \u2018list\u2019 object has no attribute \u2018split\u2019\u201d error is raised when you try to divide a list into multiple lists using the <code>split()<\/code> method.<br><\/p>\n\n\n\n<p>You solve this error by ensuring you only use <code>split()<\/code> on a string. If you read a file into a program, make sure you use <code>split()<\/code> on each individual line in the file, rather than a list of all the lines.<br><\/p>\n\n\n\n<p>Now you\u2019re ready to solve this common Python error like a pro!<\/p>\n","protected":false},"excerpt":{"rendered":"Python lists cannot be divided into separate lists based on characters that appear in the values of a list. This is unlike strings which values can be separated into a list. If you try to use the split() method on a list, you get the error \u201cattributeerror: \u2018list\u2019 object has no attribute \u2018split\u2019\u201d. In this&hellip;","protected":false},"author":240,"featured_media":21087,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[16578],"tags":[],"class_list":{"0":"post-21086","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>Python attributeerror: \u2018list\u2019 object has no attribute \u2018split\u2019<\/title>\n<meta name=\"description\" content=\"On Career Karma, learn about the Python attributeerror: \u2018list\u2019 object has no attribute \u2018split\u2019, how the error works, and how to solve the 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-attributeerror-list-object-has-no-attribute-split\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python attributeerror: \u2018list\u2019 object has no attribute \u2018split\u2019 Solution\" \/>\n<meta property=\"og:description\" content=\"On Career Karma, learn about the Python attributeerror: \u2018list\u2019 object has no attribute \u2018split\u2019, how the error works, and how to solve the error.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/python-attributeerror-list-object-has-no-attribute-split\/\" \/>\n<meta property=\"og:site_name\" content=\"Career Karma\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/facebook.com\/careerkarmaapp\" \/>\n<meta property=\"article:published_time\" content=\"2020-08-12T19:03:43+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T11:57:46+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/nikolay-tarashchenko-0mX_FXDojEE-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-attributeerror-list-object-has-no-attribute-split\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-attributeerror-list-object-has-no-attribute-split\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"Python attributeerror: \u2018list\u2019 object has no attribute \u2018split\u2019 Solution\",\"datePublished\":\"2020-08-12T19:03:43+00:00\",\"dateModified\":\"2023-12-01T11:57:46+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-attributeerror-list-object-has-no-attribute-split\/\"},\"wordCount\":619,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-attributeerror-list-object-has-no-attribute-split\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/nikolay-tarashchenko-0mX_FXDojEE-unsplash.jpg\",\"articleSection\":[\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/careerkarma.com\/blog\/python-attributeerror-list-object-has-no-attribute-split\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-attributeerror-list-object-has-no-attribute-split\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/python-attributeerror-list-object-has-no-attribute-split\/\",\"name\":\"Python attributeerror: \u2018list\u2019 object has no attribute \u2018split\u2019\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-attributeerror-list-object-has-no-attribute-split\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-attributeerror-list-object-has-no-attribute-split\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/nikolay-tarashchenko-0mX_FXDojEE-unsplash.jpg\",\"datePublished\":\"2020-08-12T19:03:43+00:00\",\"dateModified\":\"2023-12-01T11:57:46+00:00\",\"author\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"On Career Karma, learn about the Python attributeerror: \u2018list\u2019 object has no attribute \u2018split\u2019, how the error works, and how to solve the error.\",\"breadcrumb\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-attributeerror-list-object-has-no-attribute-split\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/careerkarma.com\/blog\/python-attributeerror-list-object-has-no-attribute-split\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-attributeerror-list-object-has-no-attribute-split\/#primaryimage\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/nikolay-tarashchenko-0mX_FXDojEE-unsplash.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/nikolay-tarashchenko-0mX_FXDojEE-unsplash.jpg\",\"width\":1020,\"height\":680},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-attributeerror-list-object-has-no-attribute-split\/#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 attributeerror: \u2018list\u2019 object has no attribute \u2018split\u2019 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":"Python attributeerror: \u2018list\u2019 object has no attribute \u2018split\u2019","description":"On Career Karma, learn about the Python attributeerror: \u2018list\u2019 object has no attribute \u2018split\u2019, how the error works, and how to solve the 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-attributeerror-list-object-has-no-attribute-split\/","og_locale":"en_US","og_type":"article","og_title":"Python attributeerror: \u2018list\u2019 object has no attribute \u2018split\u2019 Solution","og_description":"On Career Karma, learn about the Python attributeerror: \u2018list\u2019 object has no attribute \u2018split\u2019, how the error works, and how to solve the error.","og_url":"https:\/\/careerkarma.com\/blog\/python-attributeerror-list-object-has-no-attribute-split\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-08-12T19:03:43+00:00","article_modified_time":"2023-12-01T11:57:46+00:00","og_image":[{"width":1020,"height":680,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/nikolay-tarashchenko-0mX_FXDojEE-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-attributeerror-list-object-has-no-attribute-split\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/python-attributeerror-list-object-has-no-attribute-split\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"Python attributeerror: \u2018list\u2019 object has no attribute \u2018split\u2019 Solution","datePublished":"2020-08-12T19:03:43+00:00","dateModified":"2023-12-01T11:57:46+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-attributeerror-list-object-has-no-attribute-split\/"},"wordCount":619,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-attributeerror-list-object-has-no-attribute-split\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/nikolay-tarashchenko-0mX_FXDojEE-unsplash.jpg","articleSection":["Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/python-attributeerror-list-object-has-no-attribute-split\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/python-attributeerror-list-object-has-no-attribute-split\/","url":"https:\/\/careerkarma.com\/blog\/python-attributeerror-list-object-has-no-attribute-split\/","name":"Python attributeerror: \u2018list\u2019 object has no attribute \u2018split\u2019","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-attributeerror-list-object-has-no-attribute-split\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-attributeerror-list-object-has-no-attribute-split\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/nikolay-tarashchenko-0mX_FXDojEE-unsplash.jpg","datePublished":"2020-08-12T19:03:43+00:00","dateModified":"2023-12-01T11:57:46+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"On Career Karma, learn about the Python attributeerror: \u2018list\u2019 object has no attribute \u2018split\u2019, how the error works, and how to solve the error.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/python-attributeerror-list-object-has-no-attribute-split\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/python-attributeerror-list-object-has-no-attribute-split\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/python-attributeerror-list-object-has-no-attribute-split\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/nikolay-tarashchenko-0mX_FXDojEE-unsplash.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/nikolay-tarashchenko-0mX_FXDojEE-unsplash.jpg","width":1020,"height":680},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/python-attributeerror-list-object-has-no-attribute-split\/#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 attributeerror: \u2018list\u2019 object has no attribute \u2018split\u2019 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\/21086","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=21086"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/21086\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/21087"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=21086"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=21086"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=21086"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}